Documentation ¶
Index ¶
- Constants
- func Api_DELETE_Nodes(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Handlers_Node(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Handlers_View(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Hello(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Node(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Node_Revision(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Node_Revisions(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Nodes(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Services(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_GET_Stream(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_POST_Nodes(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_PUT_Nodes(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_PUT_Nodes_Move(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Api_PUT_Notify(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)
- func Check(c web.C, res http.ResponseWriter, req *http.Request, attrs security.Attributes, ...) bool
- func Configure(l *goapp.Lifecycle, conf *config.Config)
- type Api
- func (a *Api) Find(query sq.SelectBuilder, page uint64, perPage uint64, ...) (*ApiPager, error)
- func (a *Api) FindOne(uuid string, options *base.AccessOptions) (*base.Node, error)
- func (a *Api) FindOneBy(query sq.SelectBuilder, options *base.AccessOptions) (*base.Node, error)
- func (a *Api) Move(nodeUuid, parentUuid string, options *base.AccessOptions) (*ApiOperation, error)
- func (a *Api) Remove(query sq.SelectBuilder, options *base.AccessOptions) (*ApiPager, error)
- func (a *Api) RemoveOne(uuid string, options *base.AccessOptions) (*base.Node, error)
- func (a *Api) Save(node *base.Node, options *base.AccessOptions) (*base.Node, base.Errors, error)
- func (a *Api) SelectBuilder(options *base.SelectOptions) sq.SelectBuilder
- type ApiOperation
- type ApiPager
- type Service
Constants ¶
View Source
const ( OPERATION_OK = "OK" OPERATION_KO = "KO" )
Variables ¶
This section is empty.
Functions ¶
func Api_DELETE_Nodes ¶
func Api_GET_Handlers_Node ¶
func Api_GET_Handlers_View ¶
func Api_GET_Hello ¶
func Api_GET_Node ¶
func Api_GET_Node_Revision ¶
func Api_GET_Node_Revisions ¶
func Api_GET_Nodes ¶
func Api_GET_Services ¶
func Api_GET_Stream ¶
func Api_POST_Nodes ¶
func Api_PUT_Nodes ¶
func Api_PUT_Nodes_Move ¶
func Api_PUT_Notify ¶
func Check ¶
func Check(c web.C, res http.ResponseWriter, req *http.Request, attrs security.Attributes, auth security.AuthorizationChecker) bool
Types ¶
type Api ¶
type Api struct { Version string Manager base.NodeManager BaseUrl string Logger *log.Logger Authorizer security.AuthorizationChecker }
func (*Api) Find ¶
func (a *Api) Find(query sq.SelectBuilder, page uint64, perPage uint64, options *base.AccessOptions) (*ApiPager, error)
func (*Api) FindOneBy ¶
func (a *Api) FindOneBy(query sq.SelectBuilder, options *base.AccessOptions) (*base.Node, error)
func (*Api) Move ¶
func (a *Api) Move(nodeUuid, parentUuid string, options *base.AccessOptions) (*ApiOperation, error)
func (*Api) Remove ¶
func (a *Api) Remove(query sq.SelectBuilder, options *base.AccessOptions) (*ApiPager, error)
func (*Api) SelectBuilder ¶
func (a *Api) SelectBuilder(options *base.SelectOptions) sq.SelectBuilder
type ApiOperation ¶
Click to show internal directories.
Click to hide internal directories.