Documentation ¶
Overview ¶
Package root defines some fundamental types.
Package root defines some fundamental types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
Credentials represent some credentials to log in with.
type User ¶
type User struct { ID string `json:"id"` Username string `json:"username"` Password string `json:"password"` }
User represents a single user.
type UserService ¶
type UserService interface { CreateUser(u *User) error GetUserByUsername(username string) (User, error) Login(c Credentials) (User, error) }
UserService defines an interface for a user service.
Directories ¶
Path | Synopsis |
---|---|
Package mock provides some mocks to test with.
|
Package mock provides some mocks to test with. |
Package mongo interfaces with MongoDb for us.
|
Package mongo interfaces with MongoDb for us. |
Package server defines internal behaviour.
|
Package server defines internal behaviour. |
Click to show internal directories.
Click to hide internal directories.