Documentation
¶
Index ¶
- func GetInt(objId int32, keyId int32) int64
- func GetKey(key string) int32
- func GetObject(objId int32, keyId int32, typeId int32) int32
- func GetString(objId int32, keyId int32) string
- func KeyLength() int32
- func KeyLog() int32
- func KeyTrace() int32
- func SetInt(objId int32, keyId int32, value int64)
- func SetString(objId int32, keyId int32, value string)
- type ScContext
- func (ctx *ScContext) Balance(color string) int64
- func (ctx *ScContext) Colors() *ScImmutableStringArray
- func (ctx *ScContext) Config() *ScImmutableMap
- func (ctx *ScContext) Error() *ScMutableString
- func (ctx *ScContext) Log(text string)
- func (ctx *ScContext) Owner() string
- func (ctx *ScContext) Params() *ScImmutableMap
- func (ctx *ScContext) Random(max int64) int64
- func (ctx *ScContext) RequestBalance(color string) int64
- func (ctx *ScContext) RequestColors() *ScImmutableStringArray
- func (ctx *ScContext) RequestHash() string
- func (ctx *ScContext) Requests() *ScMutableMapArray
- func (ctx *ScContext) ScAddress() string
- func (ctx *ScContext) Sender() string
- func (ctx *ScContext) State() *ScMutableMap
- func (ctx *ScContext) Timestamp() int64
- func (ctx *ScContext) Trace(text string)
- func (ctx *ScContext) Transfers() *ScMutableMapArray
- type ScImmutableInt
- type ScImmutableIntArray
- type ScImmutableMap
- func (o *ScImmutableMap) GetInt(key string) *ScImmutableInt
- func (o *ScImmutableMap) GetIntArray(key string) *ScImmutableIntArray
- func (o *ScImmutableMap) GetMap(key string) *ScImmutableMap
- func (o *ScImmutableMap) GetMaprray(key string) *ScImmutableMapArray
- func (o *ScImmutableMap) GetString(key string) *ScImmutableString
- func (o *ScImmutableMap) GetStringArray(key string) *ScImmutableStringArray
- type ScImmutableMapArray
- type ScImmutableString
- type ScImmutableStringArray
- type ScMutableInt
- type ScMutableIntArray
- type ScMutableMap
- func (o *ScMutableMap) Clear()
- func (o *ScMutableMap) GetInt(key string) *ScMutableInt
- func (o *ScMutableMap) GetIntArray(key string) *ScMutableIntArray
- func (o *ScMutableMap) GetMap(key string) *ScMutableMap
- func (o *ScMutableMap) GetMapArray(key string) *ScMutableMapArray
- func (o *ScMutableMap) GetString(key string) *ScMutableString
- func (o *ScMutableMap) GetStringArray(key string) *ScMutableStringArray
- func (o *ScMutableMap) Immutable() *ScImmutableMap
- type ScMutableMapArray
- type ScMutableString
- type ScMutableStringArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ScContext ¶
type ScContext struct {
// contains filtered or unexported fields
}
func NewScContext ¶
func NewScContext() *ScContext
func (*ScContext) Colors ¶
func (ctx *ScContext) Colors() *ScImmutableStringArray
func (*ScContext) Config ¶
func (ctx *ScContext) Config() *ScImmutableMap
func (*ScContext) Error ¶
func (ctx *ScContext) Error() *ScMutableString
func (*ScContext) Params ¶
func (ctx *ScContext) Params() *ScImmutableMap
func (*ScContext) RequestBalance ¶
func (*ScContext) RequestColors ¶
func (ctx *ScContext) RequestColors() *ScImmutableStringArray
func (*ScContext) RequestHash ¶
func (*ScContext) Requests ¶
func (ctx *ScContext) Requests() *ScMutableMapArray
func (*ScContext) State ¶
func (ctx *ScContext) State() *ScMutableMap
func (*ScContext) Transfers ¶
func (ctx *ScContext) Transfers() *ScMutableMapArray
type ScImmutableInt ¶
type ScImmutableInt struct {
// contains filtered or unexported fields
}
func (*ScImmutableInt) Value ¶
func (o *ScImmutableInt) Value() int64
type ScImmutableIntArray ¶
type ScImmutableIntArray struct {
// contains filtered or unexported fields
}
func (*ScImmutableIntArray) GetInt ¶
func (o *ScImmutableIntArray) GetInt(index int32) *ScImmutableInt
func (*ScImmutableIntArray) Length ¶
func (o *ScImmutableIntArray) Length() int32
type ScImmutableMap ¶
type ScImmutableMap struct {
// contains filtered or unexported fields
}
func (*ScImmutableMap) GetInt ¶
func (o *ScImmutableMap) GetInt(key string) *ScImmutableInt
func (*ScImmutableMap) GetIntArray ¶
func (o *ScImmutableMap) GetIntArray(key string) *ScImmutableIntArray
func (*ScImmutableMap) GetMap ¶
func (o *ScImmutableMap) GetMap(key string) *ScImmutableMap
func (*ScImmutableMap) GetMaprray ¶
func (o *ScImmutableMap) GetMaprray(key string) *ScImmutableMapArray
func (*ScImmutableMap) GetString ¶
func (o *ScImmutableMap) GetString(key string) *ScImmutableString
func (*ScImmutableMap) GetStringArray ¶
func (o *ScImmutableMap) GetStringArray(key string) *ScImmutableStringArray
type ScImmutableMapArray ¶
type ScImmutableMapArray struct {
// contains filtered or unexported fields
}
func (*ScImmutableMapArray) GetMap ¶
func (o *ScImmutableMapArray) GetMap(index int32) *ScImmutableMap
func (*ScImmutableMapArray) Length ¶
func (o *ScImmutableMapArray) Length() int32
type ScImmutableString ¶
type ScImmutableString struct {
// contains filtered or unexported fields
}
func (*ScImmutableString) Value ¶
func (o *ScImmutableString) Value() string
type ScImmutableStringArray ¶
type ScImmutableStringArray struct {
// contains filtered or unexported fields
}
func (*ScImmutableStringArray) GetString ¶
func (o *ScImmutableStringArray) GetString(index int32) *ScImmutableString
func (*ScImmutableStringArray) Length ¶
func (o *ScImmutableStringArray) Length() int32
type ScMutableInt ¶
type ScMutableInt struct {
// contains filtered or unexported fields
}
func (*ScMutableInt) SetValue ¶
func (o *ScMutableInt) SetValue(value int64)
func (*ScMutableInt) Value ¶
func (o *ScMutableInt) Value() int64
type ScMutableIntArray ¶
type ScMutableIntArray struct {
// contains filtered or unexported fields
}
func (*ScMutableIntArray) Clear ¶
func (o *ScMutableIntArray) Clear()
func (*ScMutableIntArray) GetInt ¶
func (o *ScMutableIntArray) GetInt(index int32) *ScMutableInt
func (*ScMutableIntArray) Immutable ¶
func (o *ScMutableIntArray) Immutable() *ScImmutableIntArray
func (*ScMutableIntArray) Length ¶
func (o *ScMutableIntArray) Length() int32
type ScMutableMap ¶
type ScMutableMap struct {
// contains filtered or unexported fields
}
func (*ScMutableMap) Clear ¶
func (o *ScMutableMap) Clear()
func (*ScMutableMap) GetInt ¶
func (o *ScMutableMap) GetInt(key string) *ScMutableInt
func (*ScMutableMap) GetIntArray ¶
func (o *ScMutableMap) GetIntArray(key string) *ScMutableIntArray
func (*ScMutableMap) GetMap ¶
func (o *ScMutableMap) GetMap(key string) *ScMutableMap
func (*ScMutableMap) GetMapArray ¶
func (o *ScMutableMap) GetMapArray(key string) *ScMutableMapArray
func (*ScMutableMap) GetString ¶
func (o *ScMutableMap) GetString(key string) *ScMutableString
func (*ScMutableMap) GetStringArray ¶
func (o *ScMutableMap) GetStringArray(key string) *ScMutableStringArray
func (*ScMutableMap) Immutable ¶
func (o *ScMutableMap) Immutable() *ScImmutableMap
type ScMutableMapArray ¶
type ScMutableMapArray struct {
// contains filtered or unexported fields
}
func (*ScMutableMapArray) Clear ¶
func (o *ScMutableMapArray) Clear()
func (*ScMutableMapArray) GetMap ¶
func (o *ScMutableMapArray) GetMap(index int32) *ScMutableMap
func (*ScMutableMapArray) Immutable ¶
func (o *ScMutableMapArray) Immutable() *ScImmutableMapArray
func (*ScMutableMapArray) Length ¶
func (o *ScMutableMapArray) Length() int32
type ScMutableString ¶
type ScMutableString struct {
// contains filtered or unexported fields
}
func (*ScMutableString) SetValue ¶
func (o *ScMutableString) SetValue(value string)
func (*ScMutableString) Value ¶
func (o *ScMutableString) Value() string
type ScMutableStringArray ¶
type ScMutableStringArray struct {
// contains filtered or unexported fields
}
func (*ScMutableStringArray) Clear ¶
func (o *ScMutableStringArray) Clear()
func (*ScMutableStringArray) GetString ¶
func (o *ScMutableStringArray) GetString(index int32) *ScMutableString
func (*ScMutableStringArray) Immutable ¶
func (o *ScMutableStringArray) Immutable() *ScImmutableStringArray
func (*ScMutableStringArray) Length ¶
func (o *ScMutableStringArray) Length() int32
Click to show internal directories.
Click to hide internal directories.