Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, code int, message string)
Error will be used to out put error
func JSON ¶
func JSON(w http.ResponseWriter, code int, payload interface{})
JSON will parse payload and send the response back to client
func NewUserRouter ¶
func NewUserRouter(u goauthpkg.UserCollection, router *mux.Router, rc goauthpkg.UserSession) *mux.Router
NewUserRouter used to create new user router
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a server object with router
func NewServer ¶
func NewServer(u goauthpkg.UserCollection, rc goauthpkg.UserSession) *Server
NewServer create a new server with user collection service
Click to show internal directories.
Click to hide internal directories.