package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Dec 15, 2018
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AuthMiddleware is gin middleware, thats validates JWT token.
type GenericError struct {
Error string `json:"error"`
}
GenericError error model.
swagger:model
Server is composition of router and DB instances.
swagger:ignore
func GetServer(user, password, database, host, port string) *Server
GetServer returns server instance.
func (server *Server) ListenAndServe()
ListenAndServe server.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.