Documentation ¶
Index ¶
- type ApiObjectRouter
- func (r *ApiObjectRouter) AddCacheControlledStreamHandler(path string, methodPerm MethodPermission, ...)
- func (r *ApiObjectRouter) AddGenericHandler(path string, methodPerm MethodPermission, ...)
- func (r *ApiObjectRouter) AddJSONHandler(path string, methodPerm MethodPermission, handleFunc handlers.ApiHandlerFunc)
- func (r *ApiObjectRouter) AddPublicHandler(path string, method string, handleFunc handlers.ApiHandlerGenericPublicFunc)
- func (r *ApiObjectRouter) AddShareHandler(path string, methodPerm MethodPermission, handleFunc handlers.ApiHandlerFunc)
- func (r *ApiObjectRouter) AddStreamHandler(path string, methodPerm MethodPermission, ...)
- func (r *ApiObjectRouter) GetPermissions() RouteMethodPermissions
- type MethodPermission
- type RouteMethodPermissions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiObjectRouter ¶
type ApiObjectRouter struct { Permissions RouteMethodPermissions Svcs *services.APIServices Router *mux.Router }
func NewAPIRouter ¶
func NewAPIRouter(svcs *services.APIServices, router *mux.Router) ApiObjectRouter
func (*ApiObjectRouter) AddCacheControlledStreamHandler ¶
func (r *ApiObjectRouter) AddCacheControlledStreamHandler(path string, methodPerm MethodPermission, handleFunc handlers.ApiCacheControlledStreamHandlerFunc)
func (*ApiObjectRouter) AddGenericHandler ¶
func (r *ApiObjectRouter) AddGenericHandler(path string, methodPerm MethodPermission, handleFunc handlers.ApiHandlerGenericFunc)
func (*ApiObjectRouter) AddJSONHandler ¶
func (r *ApiObjectRouter) AddJSONHandler(path string, methodPerm MethodPermission, handleFunc handlers.ApiHandlerFunc)
func (*ApiObjectRouter) AddPublicHandler ¶
func (r *ApiObjectRouter) AddPublicHandler(path string, method string, handleFunc handlers.ApiHandlerGenericPublicFunc)
func (*ApiObjectRouter) AddShareHandler ¶
func (r *ApiObjectRouter) AddShareHandler(path string, methodPerm MethodPermission, handleFunc handlers.ApiHandlerFunc)
func (*ApiObjectRouter) AddStreamHandler ¶
func (r *ApiObjectRouter) AddStreamHandler(path string, methodPerm MethodPermission, handleFunc handlers.ApiStreamHandlerFunc)
func (*ApiObjectRouter) GetPermissions ¶
func (r *ApiObjectRouter) GetPermissions() RouteMethodPermissions
type MethodPermission ¶
func MakeMethodPermission ¶
func MakeMethodPermission(method string, permission string) MethodPermission
type RouteMethodPermissions ¶
Click to show internal directories.
Click to hide internal directories.