Documentation ¶
Index ¶
- Constants
- type CountOptions
- type FindOptions
- func (f *FindOptions) SetLimit(i int) *FindOptions
- func (f *FindOptions) SetLookup(l interface{}) *FindOptions
- func (f *FindOptions) SetOr(or interface{}) *FindOptions
- func (f *FindOptions) SetSelect(s interface{}) *FindOptions
- func (f *FindOptions) SetSkip(i int) *FindOptions
- func (f *FindOptions) SetSort(s interface{}) *FindOptions
- func (f *FindOptions) SetWhere(w interface{}) *FindOptions
- type GetByIDOptions
- type SubscribeOptions
- type UserOptions
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 UserOptions ¶
type UserOptions struct {
Lookup interface{}
}
func User ¶
func User() *UserOptions
func (*UserOptions) SetLookup ¶
func (u *UserOptions) SetLookup(l interface{}) *UserOptions
Click to show internal directories.
Click to hide internal directories.