GoDoc and some typos...
This commit is contained in:
parent
9f37579562
commit
543b39f822
15 changed files with 37 additions and 19 deletions
|
|
@ -22,7 +22,7 @@ type AccountStore interface {
|
|||
DeleteToken(*auth.Token) error
|
||||
}
|
||||
|
||||
// AccountResource implements account managment handler.
|
||||
// AccountResource implements account management handler.
|
||||
type AccountResource struct {
|
||||
Store AccountStore
|
||||
}
|
||||
|
|
@ -64,7 +64,7 @@ func (rs *AccountResource) accountCtx(next http.Handler) http.Handler {
|
|||
|
||||
type accountRequest struct {
|
||||
*auth.Account
|
||||
// override protected data here, although not really neccessary here
|
||||
// override protected data here, although not really necessary here
|
||||
// as we limit updated database columns in store as well
|
||||
ProtectedID int `json:"id"`
|
||||
ProtectedActive bool `json:"active"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue