Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountsService = IAccountsService{}
AccountsService Singleton instance of AccountsService
View Source
var URLPatterns = []core.URLHandler{ core.URLHandler{ URL: "/me", Handler: getUser, Methods: []string{"GET"}, Middlewares: []core.Middleware{ middlewares.AuthenticationMiddleware(), }, }, core.URLHandler{ URL: "/register", Handler: registerUser, Methods: []string{"POST"}, }, core.URLHandler{ URL: "/login", Handler: login, Methods: []string{"POST"}, }, }
URLPatterns Array of url handlers containing patterns and their corresponding handlers
Functions ¶
This section is empty.
Types ¶
type IAccountsService ¶
type IAccountsService struct { }
IAccountsService Service exposing accounts related operations
type LoginSerializer ¶
LoginSerializer Serializer for login form
type UserDetailsSerializer ¶
UserDetailsSerializer Serializer for user details
type UserLoginSerializer ¶
type UserLoginSerializer struct { Username string `json:"username"` Name string `json:"name"` Token string `json:"token"` }
UserLoginSerializer Serializer for user details on login
Click to show internal directories.
Click to hide internal directories.