Documentation ¶
Index ¶
- Variables
- func Register(m ronykit.Message)
- type FieldInfo
- type Object
- func (o Object) Encoding() ronykit.Encoding
- func (o Object) GetInt(fieldName string) (int, error)
- func (o Object) GetInt32(fieldName string) (int32, error)
- func (o Object) GetInt32Default(fieldName string, def int32) int32
- func (o Object) GetInt64(fieldName string) (int64, error)
- func (o Object) GetInt64Default(fieldName string, def int64) int64
- func (o Object) GetIntDefault(fieldName string, def int) int
- func (o Object) GetString(fieldName string) (string, error)
- func (o Object) GetStringDefault(fieldName string, def string) string
- func (o Object) GetUInt(fieldName string) (uint, error)
- func (o Object) GetUInt32(fieldName string) (uint32, error)
- func (o Object) GetUInt32Default(fieldName string, def uint32) uint32
- func (o Object) GetUInt64(fieldName string) (uint64, error)
- func (o Object) GetUInt64Default(fieldName string, def uint64) uint64
- func (o Object) GetUIntDefault(fieldName string, def uint) uint
- func (o Object) Message() ronykit.Message
- func (o Object) Type() reflect.Type
- func (o Object) WalkFields(cb func(key string, f FieldInfo))
- type Reflector
- func (r *Reflector) Get(m ronykit.Message, fieldName string) (interface{}, error)
- func (r *Reflector) GetInt(m ronykit.Message, fieldName string) (int64, error)
- func (r *Reflector) GetString(m ronykit.Message, fieldName string) (string, error)
- func (r *Reflector) Load(m ronykit.Message) (Object, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExported = fmt.Errorf("not exported") ErrNoField = fmt.Errorf("field not exists") )
Functions ¶
Types ¶
type FieldInfo ¶ added in v0.6.0
type FieldInfo struct {
// contains filtered or unexported fields
}
func (FieldInfo) Type ¶ added in v0.6.0
func (f FieldInfo) Type() reflect.StructField
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (Object) GetStringDefault ¶
func (Object) GetUInt32Default ¶
func (Object) GetUInt64Default ¶
func (Object) WalkFields ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.