Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationRequest ¶
type AuthenticationRequest struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
AuthenticationRequest struct to receibe on authentication
type User ¶
type User struct { Name string `json:"name,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
User information
type UserService ¶
type UserService interface { Save(ctx context.Context, user User) error Get(ctx context.Context, username string) (u User, err error) Update(ctx context.Context, user User) error Delete(ctx context.Context, username string) error Autenticate(ctx context.Context, user AuthenticationRequest) (User, error) }
UserService service
Click to show internal directories.
Click to hide internal directories.