Documentation ¶
Index ¶
- Variables
- func Register(m ronykit.Message, tags ...string)
- type FieldInfo
- type Fields
- func (fields Fields) Get(m ronykit.Message, fieldName string) interface{}
- func (fields Fields) GetInt(m ronykit.Message, fieldName string) (int, error)
- func (fields Fields) GetInt32(m ronykit.Message, fieldName string) (int32, error)
- func (fields Fields) GetInt32Default(m ronykit.Message, fieldName string, def int32) int32
- func (fields Fields) GetInt64(m ronykit.Message, fieldName string) (int64, error)
- func (fields Fields) GetInt64Default(m ronykit.Message, fieldName string, def int64) int64
- func (fields Fields) GetIntDefault(m ronykit.Message, fieldName string, def int) int
- func (fields Fields) GetString(m ronykit.Message, fieldName string) (string, error)
- func (fields Fields) GetStringDefault(m ronykit.Message, fieldName string, def string) string
- func (fields Fields) GetUInt(m ronykit.Message, fieldName string) (uint, error)
- func (fields Fields) GetUInt32(m ronykit.Message, fieldName string) (uint32, error)
- func (fields Fields) GetUInt32Default(m ronykit.Message, fieldName string, def uint32) uint32
- func (fields Fields) GetUInt64(m ronykit.Message, fieldName string) (uint64, error)
- func (fields Fields) GetUInt64Default(m ronykit.Message, fieldName string, def uint64) uint64
- func (fields Fields) GetUIntDefault(m ronykit.Message, fieldName string, def uint) uint
- func (fields Fields) WalkFields(cb func(key string, f FieldInfo))
- type Reflected
- 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, tags ...string) *Reflected
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
}
type Fields ¶ added in v0.6.2
func (Fields) GetInt32Default ¶ added in v0.6.2
func (Fields) GetInt64Default ¶ added in v0.6.2
func (Fields) GetIntDefault ¶ added in v0.6.2
func (Fields) GetStringDefault ¶ added in v0.6.2
func (Fields) GetUInt32Default ¶ added in v0.6.2
func (Fields) GetUInt64Default ¶ added in v0.6.2
func (Fields) GetUIntDefault ¶ added in v0.6.2
func (Fields) WalkFields ¶ added in v0.6.2
type Reflected ¶ added in v0.6.2
type Reflected struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.