Documentation ¶
Index ¶
- func ParseSubAttributes(i, o Attributes, key *string)
- type Attributes
- func (a *Attributes) Delete(key string) error
- func (a *Attributes) Get(key string) interface{}
- func (a *Attributes) GetArrayFloat32(key string) (values []float32)
- func (a *Attributes) GetArrayFloat64(key string) (values []float64)
- func (a *Attributes) GetArrayInt(key string) (values []int)
- func (a *Attributes) GetArrayInterface(key string) []interface{}
- func (a *Attributes) GetArrayString(key string) (values []string)
- func (a *Attributes) GetFloat64(key string) float64
- func (a *Attributes) GetInt(key string) int
- func (a *Attributes) GetString(key string) string
- func (a *Attributes) GetSubAttributes(key string) (*Attributes, error)
- func (a Attributes) KeyExists(key string) bool
- func (a *Attributes) PairKeyTo(key string, o interface{}) error
- func (a *Attributes) PairTo(o interface{}) error
- func (a Attributes) ParseKeyValSetAttributes() Attributes
- func (a *Attributes) Set(key string, val interface{}) error
- type Error
- type Filter
- type IError
- type Limit
- type Params
- type Request
- type Response
- type Sort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseSubAttributes ¶
func ParseSubAttributes(i, o Attributes, key *string)
ParseSubAttributes function
Types ¶
type Attributes ¶
type Attributes map[string]interface{}
Attributes type map
func (*Attributes) GetArrayFloat32 ¶
func (a *Attributes) GetArrayFloat32(key string) (values []float32)
GetArrayFloat32 method
func (*Attributes) GetArrayFloat64 ¶
func (a *Attributes) GetArrayFloat64(key string) (values []float64)
GetArrayFloat64 method
func (*Attributes) GetArrayInt ¶
func (a *Attributes) GetArrayInt(key string) (values []int)
GetArrayInt method
func (*Attributes) GetArrayInterface ¶
func (a *Attributes) GetArrayInterface(key string) []interface{}
GetArrayInterface method
func (*Attributes) GetArrayString ¶
func (a *Attributes) GetArrayString(key string) (values []string)
GetArrayString method
func (*Attributes) GetFloat64 ¶
func (a *Attributes) GetFloat64(key string) float64
GetFloat64 method
func (*Attributes) GetSubAttributes ¶
func (a *Attributes) GetSubAttributes(key string) (*Attributes, error)
GetSubAttributes method
func (*Attributes) PairKeyTo ¶
func (a *Attributes) PairKeyTo(key string, o interface{}) error
PairKeyTo method
func (Attributes) ParseKeyValSetAttributes ¶
func (a Attributes) ParseKeyValSetAttributes() Attributes
ParseKeyValSetAttributes method
type Error ¶
type Error struct { Code string `json:"code" bson:"code" binding:"required"` Type string `json:"type,omitempty" bson:"type,omitempty"` Status string `json:"status,omitempty" bson:"status,omitempty"` Message string `json:"message,omitempty" bson:"message,omitempty"` MessageDetails string `json:"message_details,omitempty" bson:"message_details,omitempty"` Refs interface{} `json:"refs,omitempty" bson:"refs,omitempty"` }
Error struct
type IError ¶
type IError struct { Result string `json:"result" bson:"result" binding:"required"` Message string `json:"message,omitempty" bson:"message,omitempty"` }
IError struct
type Params ¶
type Params struct { Filters []Filter `json:"filter" bson:"filter"` Sort []Sort `json:"sort" bson:"sort"` Limits Limit `json:"limit" bson:"limit"` AttrFilters []Filter `json:"filter_attributes" bson:"filter_attributes"` }
Params struct
type Request ¶
type Request struct { Kind string `json:"kind" bson:"kind" binding:"required"` Values interface{} `json:"values" bson:"values" binding:"required"` }
Request struct
type Response ¶
type Response struct { ReturnVal bool `json:"returnval" bson:"returnval" binding:"required"` RespVal string `json:"respval,omitempty" bson:"respval,omitempty"` Kind string `json:"kind,omitempty" bson:"kind,omitempty"` Values interface{} `json:"values,omitempty" bson:"values,omitempty"` Error interface{} `json:"error,omitempty" bson:"error,omitempty"` }
Response struct
Click to show internal directories.
Click to hide internal directories.