Documentation ¶
Index ¶
- func ErrorTypeNotArray(value interface{}) *service.Error
- func ErrorTypeNotBoolean(value interface{}) *service.Error
- func ErrorTypeNotFloat(value interface{}) *service.Error
- func ErrorTypeNotInteger(value interface{}) *service.Error
- func ErrorTypeNotObject(value interface{}) *service.Error
- func ErrorTypeNotString(value interface{}) *service.Error
- type StandardArray
- func (s *StandardArray) AppendError(reference interface{}, err *service.Error)
- func (s *StandardArray) Array() *[]interface{}
- func (s *StandardArray) NewChildArrayParser(index int) data.ArrayParser
- func (s *StandardArray) NewChildObjectParser(index int) data.ObjectParser
- func (s *StandardArray) ParseBoolean(index int) *bool
- func (s *StandardArray) ParseFloat(index int) *float64
- func (s *StandardArray) ParseInteger(index int) *int
- func (s *StandardArray) ParseInterface(index int) *interface{}
- func (s *StandardArray) ParseInterfaceArray(index int) *[]interface{}
- func (s *StandardArray) ParseObject(index int) *map[string]interface{}
- func (s *StandardArray) ParseObjectArray(index int) *[]map[string]interface{}
- func (s *StandardArray) ParseString(index int) *string
- func (s *StandardArray) ParseStringArray(index int) *[]string
- func (s *StandardArray) SetMeta(meta interface{})
- type StandardObject
- func (s *StandardObject) AppendError(reference interface{}, err *service.Error)
- func (s *StandardObject) NewChildArrayParser(key string) data.ArrayParser
- func (s *StandardObject) NewChildObjectParser(key string) data.ObjectParser
- func (s *StandardObject) Object() *map[string]interface{}
- func (s *StandardObject) ParseBoolean(key string) *bool
- func (s *StandardObject) ParseFloat(key string) *float64
- func (s *StandardObject) ParseInteger(key string) *int
- func (s *StandardObject) ParseInterface(key string) *interface{}
- func (s *StandardObject) ParseInterfaceArray(key string) *[]interface{}
- func (s *StandardObject) ParseObject(key string) *map[string]interface{}
- func (s *StandardObject) ParseObjectArray(key string) *[]map[string]interface{}
- func (s *StandardObject) ParseString(key string) *string
- func (s *StandardObject) ParseStringArray(key string) *[]string
- func (s *StandardObject) SetMeta(meta interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorTypeNotArray ¶
func ErrorTypeNotBoolean ¶
func ErrorTypeNotFloat ¶
func ErrorTypeNotInteger ¶
func ErrorTypeNotObject ¶
func ErrorTypeNotString ¶
Types ¶
type StandardArray ¶
type StandardArray struct {
// contains filtered or unexported fields
}
func NewStandardArray ¶
func NewStandardArray(context data.Context, array *[]interface{}) (*StandardArray, error)
func (*StandardArray) AppendError ¶
func (s *StandardArray) AppendError(reference interface{}, err *service.Error)
func (*StandardArray) Array ¶
func (s *StandardArray) Array() *[]interface{}
func (*StandardArray) NewChildArrayParser ¶
func (s *StandardArray) NewChildArrayParser(index int) data.ArrayParser
func (*StandardArray) NewChildObjectParser ¶
func (s *StandardArray) NewChildObjectParser(index int) data.ObjectParser
func (*StandardArray) ParseBoolean ¶
func (s *StandardArray) ParseBoolean(index int) *bool
func (*StandardArray) ParseFloat ¶
func (s *StandardArray) ParseFloat(index int) *float64
func (*StandardArray) ParseInteger ¶
func (s *StandardArray) ParseInteger(index int) *int
func (*StandardArray) ParseInterface ¶
func (s *StandardArray) ParseInterface(index int) *interface{}
func (*StandardArray) ParseInterfaceArray ¶
func (s *StandardArray) ParseInterfaceArray(index int) *[]interface{}
func (*StandardArray) ParseObject ¶
func (s *StandardArray) ParseObject(index int) *map[string]interface{}
func (*StandardArray) ParseObjectArray ¶
func (s *StandardArray) ParseObjectArray(index int) *[]map[string]interface{}
func (*StandardArray) ParseString ¶
func (s *StandardArray) ParseString(index int) *string
func (*StandardArray) ParseStringArray ¶
func (s *StandardArray) ParseStringArray(index int) *[]string
func (*StandardArray) SetMeta ¶
func (s *StandardArray) SetMeta(meta interface{})
type StandardObject ¶
type StandardObject struct {
// contains filtered or unexported fields
}
func NewStandardObject ¶
func NewStandardObject(context data.Context, object *map[string]interface{}) (*StandardObject, error)
func (*StandardObject) AppendError ¶
func (s *StandardObject) AppendError(reference interface{}, err *service.Error)
func (*StandardObject) NewChildArrayParser ¶
func (s *StandardObject) NewChildArrayParser(key string) data.ArrayParser
func (*StandardObject) NewChildObjectParser ¶
func (s *StandardObject) NewChildObjectParser(key string) data.ObjectParser
func (*StandardObject) Object ¶
func (s *StandardObject) Object() *map[string]interface{}
func (*StandardObject) ParseBoolean ¶
func (s *StandardObject) ParseBoolean(key string) *bool
func (*StandardObject) ParseFloat ¶
func (s *StandardObject) ParseFloat(key string) *float64
func (*StandardObject) ParseInteger ¶
func (s *StandardObject) ParseInteger(key string) *int
func (*StandardObject) ParseInterface ¶
func (s *StandardObject) ParseInterface(key string) *interface{}
func (*StandardObject) ParseInterfaceArray ¶
func (s *StandardObject) ParseInterfaceArray(key string) *[]interface{}
func (*StandardObject) ParseObject ¶
func (s *StandardObject) ParseObject(key string) *map[string]interface{}
func (*StandardObject) ParseObjectArray ¶
func (s *StandardObject) ParseObjectArray(key string) *[]map[string]interface{}
func (*StandardObject) ParseString ¶
func (s *StandardObject) ParseString(key string) *string
func (*StandardObject) ParseStringArray ¶
func (s *StandardObject) ParseStringArray(key string) *[]string
func (*StandardObject) SetMeta ¶
func (s *StandardObject) SetMeta(meta interface{})
Click to show internal directories.
Click to hide internal directories.