api

package
v0.0.0-...-8f9ce2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OPERATION_OK = "OK"
	OPERATION_KO = "KO"
)

Variables

This section is empty.

Functions

func Api_DELETE_Nodes

func Api_DELETE_Nodes(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Handlers_Node

func Api_GET_Handlers_Node(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Handlers_View

func Api_GET_Handlers_View(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Hello

func Api_GET_Hello(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Node

func Api_GET_Node(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Node_Revision

func Api_GET_Node_Revision(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Node_Revisions

func Api_GET_Node_Revisions(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Nodes

func Api_GET_Nodes(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Services

func Api_GET_Services(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_GET_Stream

func Api_GET_Stream(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_POST_Nodes

func Api_POST_Nodes(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_PUT_Nodes

func Api_PUT_Nodes(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_PUT_Nodes_Move

func Api_PUT_Nodes_Move(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Api_PUT_Notify

func Api_PUT_Notify(app *goapp.App) func(c web.C, res http.ResponseWriter, req *http.Request)

func Configure

func Configure(l *goapp.Lifecycle, conf *config.Config)

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) FindOne

func (a *Api) FindOne(uuid string, options *base.AccessOptions) (*base.Node, 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) RemoveOne

func (a *Api) RemoveOne(uuid string, options *base.AccessOptions) (*base.Node, error)

func (*Api) Save

func (a *Api) Save(node *base.Node, options *base.AccessOptions) (*base.Node, base.Errors, error)

func (*Api) SelectBuilder

func (a *Api) SelectBuilder(options *base.SelectOptions) sq.SelectBuilder

type ApiOperation

type ApiOperation struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

type ApiPager

type ApiPager struct {
	Elements []interface{} `json:"elements"`
	Page     uint64        `json:"page"`
	PerPage  uint64        `json:"per_page"`
	Next     uint64        `json:"next"`
	Previous uint64        `json:"previous"`
}

type Service

type Service struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL