options

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RealtimeAll    = "*"
	RealtimeCreate = "CREATE_RECORD"
	RealtimeUpdate = "UPDATE_RECORD"
	RealtimeDelete = "DELETE_RECORD"
	RealtimeError  = "ERROR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CountOptions

type CountOptions struct {
	Or    interface{} `json:"$or,omitempty"`
	Where interface{} `json:"-"`
}

func Count

func Count() *CountOptions

func (*CountOptions) SetOr

func (c *CountOptions) SetOr(or interface{}) *CountOptions

func (*CountOptions) SetWhere

func (c *CountOptions) SetWhere(w interface{}) *CountOptions

type FindOptions

type FindOptions struct {
	Or     interface{} `json:"$or,omitempty"`
	Limit  *int        `json:"$limit,omitempty"`
	Lookup interface{} `json:"$lookup,omitempty"`
	Select interface{} `json:"$select,omitempty"`
	Skip   *int        `json:"$skip,omitempty"`
	Sort   interface{} `json:"$sort,omitempty"`
	Where  interface{} `json:"-"`
}

func Find

func Find() *FindOptions

func (*FindOptions) SetLimit

func (f *FindOptions) SetLimit(i int) *FindOptions

func (*FindOptions) SetLookup

func (f *FindOptions) SetLookup(l interface{}) *FindOptions

func (*FindOptions) SetOr

func (f *FindOptions) SetOr(or interface{}) *FindOptions

func (*FindOptions) SetSelect

func (f *FindOptions) SetSelect(s interface{}) *FindOptions

func (*FindOptions) SetSkip

func (f *FindOptions) SetSkip(i int) *FindOptions

func (*FindOptions) SetSort

func (f *FindOptions) SetSort(s interface{}) *FindOptions

func (*FindOptions) SetWhere

func (f *FindOptions) SetWhere(w interface{}) *FindOptions

type GetByIDOptions

type GetByIDOptions struct {
	Lookup interface{}
	Select interface{}
}

func GetByID

func GetByID() *GetByIDOptions

func (*GetByIDOptions) SetLookup

func (g *GetByIDOptions) SetLookup(l interface{}) *GetByIDOptions

func (*GetByIDOptions) SetSelect

func (g *GetByIDOptions) SetSelect(s interface{}) *GetByIDOptions

type SubscribeOptions

type SubscribeOptions struct {
	Event     string
	Where     interface{}
	OnMessage func(event string, payload map[string]interface{}) error
	OnError   func(event string, payload map[string]interface{}) error
}

type UserOptions

type UserOptions struct {
	Lookup interface{}
}

func User

func User() *UserOptions

func (*UserOptions) SetLookup

func (u *UserOptions) SetLookup(l interface{}) *UserOptions

Jump to

Keyboard shortcuts

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