Documentation ¶
Index ¶
- Variables
- func Errors(w http.ResponseWriter, errors []sanitizer.FieldError)
- func FieldError(w http.ResponseWriter, fieldpath string, fieldname string, errorstring string)
- func LoadSessionFromRequest(tx *sqlx.Tx, r *http.Request) *session.Session
- func Register(myroute *Route) error
- func RegisterMultiple(routes []*Route) error
- func ServerError(w http.ResponseWriter, code int, message string)
- type File
- type Proute
- type Route
Constants ¶
This section is empty.
Variables ¶
View Source
var MuxRouter *mux.Router
MuxRouter is the gorilla mux router initialized here for Arkeogis
View Source
var Routes []*Route = []*Route{}
All routes added here are stored there. This is usefull for building REST doc
Functions ¶
func Errors ¶
func Errors(w http.ResponseWriter, errors []sanitizer.FieldError)
func FieldError ¶
func FieldError(w http.ResponseWriter, fieldpath string, fieldname string, errorstring string)
func LoadSessionFromRequest ¶
func RegisterMultiple ¶
RegisterMultiple will register multiple Arkeogis Routes
func ServerError ¶
func ServerError(w http.ResponseWriter, code int, message string)
Types ¶
type Route ¶
type Route struct { Path string Description string // for rest doc generator Func func(rw http.ResponseWriter, r *http.Request, proute Proute) Method string Queries []string Json reflect.Type Params reflect.Type Permissions []string }
Route structure that is used for registering a new Arkeogis Route
Click to show internal directories.
Click to hide internal directories.