Documentation ¶
Index ¶
- Constants
- func CreateUser(w http.ResponseWriter, r *http.Request)
- func GetUser(w http.ResponseWriter, r *http.Request)
- func NewRouter() *mux.Router
- func UsersEndpoint(w http.ResponseWriter, r *http.Request)
- func YourselfEndpoint(w http.ResponseWriter, r *http.Request)
- type Route
- type Routes
- type User
Constants ¶
View Source
const ( // UserCollection is user collection UserCollection string = "Users" )
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(w http.ResponseWriter, r *http.Request)
CreateUser is a function to create user information
func YourselfEndpoint ¶
func YourselfEndpoint(w http.ResponseWriter, r *http.Request)
YourselfEndpoint ...
Types ¶
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
Route ...
Click to show internal directories.
Click to hide internal directories.