Documentation
¶
Index ¶
- Variables
- type GFSArray
- func (s *GFSArray) Add(value interface{})
- func (s *GFSArray) AddBool(value bool)
- func (s *GFSArray) AddByte(value byte)
- func (s *GFSArray) AddDouble(value float64)
- func (s *GFSArray) AddFloat(value float32)
- func (s *GFSArray) AddInt(value int)
- func (s *GFSArray) AddLong(value int64)
- func (s *GFSArray) AddNull()
- func (s *GFSArray) AddObject(wrapper GFSDataWrapper)
- func (s *GFSArray) AddSFSArray(value *GFSArray)
- func (s *GFSArray) AddSFSObject(value *GFSObject)
- func (s *GFSArray) AddShort(value int16)
- func (s *GFSArray) AddUtfString(value string)
- func (s *GFSArray) Dump(indents int) string
- func (s *GFSArray) Get(index int) *GFSDataWrapper
- func (a *GFSArray) MarshalBinary() ([]byte, error)
- func (s *GFSArray) RemoveObject(wrapper *GFSDataWrapper)
- func (s *GFSArray) Size() int
- func (s *GFSArray) String() string
- func (a *GFSArray) UnmarshalBinary(data []byte) error
- type GFSDataType
- type GFSDataWrapper
- type GFSObject
- func (o *GFSObject) ContainsKey(key string) bool
- func (o *GFSObject) Dump(indents int) string
- func (o *GFSObject) Get(key string) *GFSDataWrapper
- func (o *GFSObject) GetBool(key string) (bool, bool)
- func (o *GFSObject) GetBoolArray(key string) ([]bool, bool)
- func (o *GFSObject) GetByte(key string) (byte, bool)
- func (o *GFSObject) GetByteArray(key string) ([]byte, bool)
- func (o *GFSObject) GetDouble(key string) (float64, bool)
- func (o *GFSObject) GetDoubleArray(key string) ([]float64, bool)
- func (o *GFSObject) GetFloat(key string) (float32, bool)
- func (o *GFSObject) GetFloatArray(key string) ([]float32, bool)
- func (o *GFSObject) GetGFSArray(key string) (*GFSArray, bool)
- func (o *GFSObject) GetGFSObject(key string) (*GFSObject, bool)
- func (o *GFSObject) GetInt(key string) (int, bool)
- func (o *GFSObject) GetIntArray(key string) ([]int, bool)
- func (o *GFSObject) GetLong(key string) (int64, bool)
- func (o *GFSObject) GetLongArray(key string) ([]int64, bool)
- func (o *GFSObject) GetShort(key string) (int16, bool)
- func (o *GFSObject) GetShortArray(key string) ([]int16, bool)
- func (o *GFSObject) GetUtfString(key string) (string, bool)
- func (o *GFSObject) GetUtfStringArray(key string) ([]string, bool)
- func (o *GFSObject) MarshalBinary() ([]byte, error)
- func (o *GFSObject) Put(key string, value interface{}) *GFSObject
- func (o *GFSObject) PutBool(key string, value bool) *GFSObject
- func (o *GFSObject) PutBoolArray(key string, value []bool) *GFSObject
- func (o *GFSObject) PutByte(key string, value byte) *GFSObject
- func (o *GFSObject) PutByteArray(key string, value []byte) *GFSObject
- func (o *GFSObject) PutDouble(key string, value float64) *GFSObject
- func (o *GFSObject) PutDoubleArray(key string, value []float64) *GFSObject
- func (o *GFSObject) PutFloat(key string, value float32) *GFSObject
- func (o *GFSObject) PutFloatArray(key string, value []float32) *GFSObject
- func (o *GFSObject) PutGFSArray(key string, value *GFSArray) *GFSObject
- func (o *GFSObject) PutGFSObject(key string, value *GFSObject) *GFSObject
- func (o *GFSObject) PutInt(key string, value int) *GFSObject
- func (o *GFSObject) PutIntArray(key string, value []int) *GFSObject
- func (o *GFSObject) PutLong(key string, value int64) *GFSObject
- func (o *GFSObject) PutLongArray(key string, value []int64) *GFSObject
- func (o *GFSObject) PutNull(key string) *GFSObject
- func (o *GFSObject) PutObject(key string, wrapper *GFSDataWrapper) *GFSObject
- func (o *GFSObject) PutShort(key string, value int16) *GFSObject
- func (o *GFSObject) PutShortArray(key string, value []int16) *GFSObject
- func (o *GFSObject) PutUtfString(key string, value string) *GFSObject
- func (o *GFSObject) PutUtfStringArray(key string, value []string) *GFSObject
- func (o *GFSObject) RemoveKey(key string)
- func (o *GFSObject) Size() int
- func (o *GFSObject) String() string
- func (o *GFSObject) UnmarshalBinary(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NULL = GFSDataType{0, "null"} BOOL = GFSDataType{1, "bool"} BYTE = GFSDataType{2, "byte"} SHORT = GFSDataType{3, "short"} INT = GFSDataType{4, "int"} LONG = GFSDataType{5, "long"} FLOAT = GFSDataType{6, "float"} DOUBLE = GFSDataType{7, "double"} UTF_STRING = GFSDataType{8, "utf_string"} BOOL_ARRAY = GFSDataType{9, "bool_array"} BYTE_ARRAY = GFSDataType{10, "byte_array"} SHORT_ARRAY = GFSDataType{11, "short_array"} INT_ARRAY = GFSDataType{12, "int_array"} LONG_ARRAY = GFSDataType{13, "long_array"} FLOAT_ARRAY = GFSDataType{14, "float_array"} DOUBLE_ARRAY = GFSDataType{15, "double_array"} UTF_STRING_ARRAY = GFSDataType{16, "utf_string_array"} GFS_ARRAY = GFSDataType{17, "gfs_array"} GFS_OBJECT = GFSDataType{18, "gfs_object"} CLASS = GFSDataType{19, "class"} TEXT = GFSDataType{20, "text"} )
View Source
var GFSDataTypes = []GFSDataType{ NULL, BOOL, BYTE, SHORT, INT, LONG, FLOAT, DOUBLE, UTF_STRING, BOOL_ARRAY, BYTE_ARRAY, SHORT_ARRAY, INT_ARRAY, LONG_ARRAY, FLOAT_ARRAY, DOUBLE_ARRAY, UTF_STRING_ARRAY, GFS_ARRAY, GFS_OBJECT, CLASS, TEXT, }
Functions ¶
This section is empty.
Types ¶
type GFSArray ¶
type GFSArray struct {
DataHolder []*GFSDataWrapper
}
func MakeGFSArray ¶
func MakeGFSArray() *GFSArray
func (*GFSArray) AddObject ¶
func (s *GFSArray) AddObject(wrapper GFSDataWrapper)
func (*GFSArray) AddSFSArray ¶
func (*GFSArray) AddSFSObject ¶
func (*GFSArray) AddUtfString ¶
func (*GFSArray) Get ¶
func (s *GFSArray) Get(index int) *GFSDataWrapper
func (*GFSArray) MarshalBinary ¶
func (*GFSArray) RemoveObject ¶
func (s *GFSArray) RemoveObject(wrapper *GFSDataWrapper)
func (*GFSArray) UnmarshalBinary ¶
type GFSDataType ¶
func GFSDataTypeFromTypeID ¶
func GFSDataTypeFromTypeID(typeID byte) *GFSDataType
func GFSDataTypeFromVar ¶
func GFSDataTypeFromVar(value interface{}) GFSDataType
func (GFSDataType) String ¶
func (d GFSDataType) String() string
type GFSDataWrapper ¶
type GFSDataWrapper struct {
Data interface{}
TypeID GFSDataType
}
func NewGFSDataWrapper ¶
func NewGFSDataWrapper(data interface{}) *GFSDataWrapper
type GFSObject ¶
type GFSObject struct {
DataHolder map[string]*GFSDataWrapper
}
func MakeGFSObject ¶
func MakeGFSObject() *GFSObject
func (*GFSObject) ContainsKey ¶
func (*GFSObject) Get ¶
func (o *GFSObject) Get(key string) *GFSDataWrapper
func (*GFSObject) GetUtfStringArray ¶
func (*GFSObject) MarshalBinary ¶
func (*GFSObject) PutBoolArray ¶
func (*GFSObject) PutByteArray ¶
func (*GFSObject) PutDoubleArray ¶
func (*GFSObject) PutFloatArray ¶
func (*GFSObject) PutGFSArray ¶
func (*GFSObject) PutGFSObject ¶
func (*GFSObject) PutLongArray ¶
func (*GFSObject) PutObject ¶
func (o *GFSObject) PutObject(key string, wrapper *GFSDataWrapper) *GFSObject
used when inference would be wrong (like forcing SHORT over INT).
func (*GFSObject) PutShortArray ¶
func (*GFSObject) PutUtfString ¶
func (*GFSObject) PutUtfStringArray ¶
func (*GFSObject) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.