client

package
v4.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPivotUrl = `http://localhost:29029`

Variables

This section is empty.

Functions

This section is empty.

Types

type Pivot

type Pivot struct {
	*httputil.Client
}

func New

func New(url string) (*Pivot, error)

func (*Pivot) Aggregate

func (self *Pivot) Aggregate(collection string, query interface{}) (*dal.RecordSet, error)

func (*Pivot) Collection

func (self *Pivot) Collection(name string) (*dal.Collection, error)

func (*Pivot) Collections

func (self *Pivot) Collections() ([]string, error)

func (*Pivot) CreateCollection

func (self *Pivot) CreateCollection(def *dal.Collection) error

func (*Pivot) CreateRecord

func (self *Pivot) CreateRecord(collection string, records ...*dal.Record) (*dal.RecordSet, error)

func (*Pivot) DeleteCollection

func (self *Pivot) DeleteCollection(name string) error

func (*Pivot) DeleteRecords

func (self *Pivot) DeleteRecords(collection string, ids ...interface{}) error

func (*Pivot) GetRecord

func (self *Pivot) GetRecord(collection string, id interface{}) (*dal.Record, error)

func (*Pivot) Query

func (self *Pivot) Query(collection string, query interface{}, options *QueryOptions) (*dal.RecordSet, error)

func (*Pivot) Status

func (self *Pivot) Status() (*Status, error)

func (*Pivot) UpdateRecord

func (self *Pivot) UpdateRecord(collection string, records ...*dal.Record) (*dal.RecordSet, error)

type QueryOptions

type QueryOptions struct {
	Limit       int      `json:"limit"`
	Offset      int      `json:"offset"`
	Sort        []string `json:"sort,omitempty"`
	Fields      []string `json:"fields,omitempty"`
	Conjunction string   `json:"conjunction,omitempty"`
}

type Status

type Status = util.Status

Jump to

Keyboard shortcuts

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