api

package
v0.0.0-...-52aaef3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2015 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ConfigureServer

func ConfigureServer(l *goapp.Lifecycle, conf *config.ServerConfig)

Types

type Api

type Api struct {
	Version    string
	Manager    core.NodeManager
	BaseUrl    string
	Serializer *core.Serializer
	Logger     *log.Logger
}

func (*Api) Find

func (a *Api) Find(w io.Writer, query sq.SelectBuilder, page uint64, perPage uint64) error

func (*Api) FindOne

func (a *Api) FindOne(uuid string, w io.Writer) error

func (*Api) FindOneBy

func (a *Api) FindOneBy(query sq.SelectBuilder, w io.Writer) error

func (*Api) Move

func (a *Api) Move(nodeUuid, parentUuid string, w io.Writer) error

func (*Api) Remove

func (a *Api) Remove(b sq.SelectBuilder, w io.Writer) error

func (*Api) RemoveOne

func (a *Api) RemoveOne(uuid string, w io.Writer) error

func (*Api) Save

func (a *Api) Save(r io.Reader, w io.Writer) error

func (*Api) SelectBuilder

func (a *Api) SelectBuilder(options *core.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"`
}

Jump to

Keyboard shortcuts

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