Documentation
¶
Index ¶
- Constants
- Variables
- func Assert(condition bool, msg string)
- type QName
- type TIntent
- func (i TIntent) PutBool(name string, value bool)
- func (i TIntent) PutBytes(name string, value []byte)
- func (i TIntent) PutFloat32(name string, value float32)
- func (i TIntent) PutFloat64(name string, value float64)
- func (i TIntent) PutInt32(name string, value int32)
- func (i TIntent) PutInt64(name string, value int64)
- func (i TIntent) PutQName(name string, value QName)
- func (i TIntent) PutString(name string, value string)
- type TKey
- func (k TKey) AsBool(name string) bool
- func (k TKey) AsBytes(name string) []byte
- func (k TKey) AsFloat32(name string) float32
- func (k TKey) AsFloat64(name string) float64
- func (k TKey) AsInt32(name string) int32
- func (k TKey) AsInt64(name string) int64
- func (k TKey) AsQName(name string) QName
- func (k TKey) AsString(name string) string
- type TKeyBuilder
- func (kb TKeyBuilder) PutBool(name string, value bool)
- func (kb TKeyBuilder) PutBytes(name string, value []byte)
- func (kb TKeyBuilder) PutFloat32(name string, value float32)
- func (kb TKeyBuilder) PutFloat64(name string, value float64)
- func (kb TKeyBuilder) PutInt32(name string, value int32)
- func (kb TKeyBuilder) PutInt64(name string, value int64)
- func (kb TKeyBuilder) PutQName(name string, value QName)
- func (kb TKeyBuilder) PutString(name string, value string)
- type TValue
- func (v TValue) AsBool(name string) bool
- func (v TValue) AsBytes(name string) []byte
- func (v TValue) AsFloat32(name string) float32
- func (v TValue) AsFloat64(name string) float64
- func (v TValue) AsInt32(name string) int32
- func (v TValue) AsInt64(name string) int64
- func (v TValue) AsQName(name string) QName
- func (v TValue) AsString(name string) string
- func (v TValue) AsValue(name string) TValue
- func (v TValue) GetAsBool(index int) bool
- func (v TValue) GetAsBytes(index int) []byte
- func (v TValue) GetAsFloat32(index int) float32
- func (v TValue) GetAsFloat64(index int) float64
- func (v TValue) GetAsInt32(index int) int32
- func (v TValue) GetAsInt64(index int) int64
- func (v TValue) GetAsQName(index int) QName
- func (v TValue) GetAsString(index int) string
- func (v TValue) GetAsValue(index int) TValue
- func (v TValue) Len() int
Constants ¶
View Source
const ( StorageEvent = "sys.Event" StorageSendMail = "sys.SendMail" StorageRecord = "sys.Record" StorageView = "sys.View" StorageWLog = "sys.WLog" StorageHttp = "sys.Http" StorageAppSecret = "sys.AppSecret" StorageRequestSubject = "sys.RequestSubject" StorageResult = "sys.Result" StorageCommandContext = "sys.CommandContext" StorageQueryContext = "sys.QueryContext" StorageResponse = "sys.Response" NullEntity = "" )
Variables ¶
View Source
var KeyBuilder func(storage, entity string) (b TKeyBuilder) = keyBuilderImpl
View Source
var MustGetValue func(key TKeyBuilder) TValue = mustGetValueImpl
MustGetValue gets value. Panics when value is not exist
View Source
var NewValue func(key TKeyBuilder) TIntent = newValueImpl
NewValue creates intent for new value
View Source
var QueryValue func(key TKeyBuilder) (value TValue, exists bool) = queryValueImpl
QueryValue queries value. When not exists it returns exists=false and value=nil.
View Source
var ReadValues func(key TKeyBuilder, callback func(key TKey, value TValue)) = readValuesImpl
ReadValues reads using partial key and returns values in callback.
Important: key and value are not kept after callback!
View Source
var UpdateValue func(key TKeyBuilder, existingValue TValue) TIntent = updateValueImpl
UpdateValue creates intent to update a value
Functions ¶
Types ¶
type TKeyBuilder ¶
type TKeyBuilder safe.TKeyBuilder
func (TKeyBuilder) PutBool ¶
func (kb TKeyBuilder) PutBool(name string, value bool)
func (TKeyBuilder) PutBytes ¶
func (kb TKeyBuilder) PutBytes(name string, value []byte)
func (TKeyBuilder) PutFloat32 ¶
func (kb TKeyBuilder) PutFloat32(name string, value float32)
func (TKeyBuilder) PutFloat64 ¶
func (kb TKeyBuilder) PutFloat64(name string, value float64)
func (TKeyBuilder) PutInt32 ¶
func (kb TKeyBuilder) PutInt32(name string, value int32)
func (TKeyBuilder) PutInt64 ¶
func (kb TKeyBuilder) PutInt64(name string, value int64)
func (TKeyBuilder) PutQName ¶
func (kb TKeyBuilder) PutQName(name string, value QName)
func (TKeyBuilder) PutString ¶
func (kb TKeyBuilder) PutString(name string, value string)
type TValue ¶
func (TValue) GetAsBytes ¶
func (TValue) GetAsFloat32 ¶
func (TValue) GetAsFloat64 ¶
func (TValue) GetAsInt32 ¶
func (TValue) GetAsInt64 ¶
func (TValue) GetAsQName ¶
func (TValue) GetAsString ¶
func (TValue) GetAsValue ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.