Documentation ¶
Index ¶
- Constants
- Variables
- func OnTestWasmLibTest(event *EventTest)
- type ArrayClearFunc
- type ArrayCreateFunc
- type ArrayLengthResults
- type ArrayLengthView
- type ArraySetFunc
- type ArrayValueResults
- type ArrayValueView
- type BlockRecordResults
- type BlockRecordView
- type BlockRecordsResults
- type BlockRecordsView
- type EventTest
- type GetRandomResults
- type GetRandomView
- type IotaBalanceResults
- type IotaBalanceView
- type MapClearFunc
- type MapCreateFunc
- type MapSetFunc
- type MapValueResults
- type MapValueView
- type ParamTypesFunc
- func (f *ParamTypesFunc) Address(v wasmclient.Address)
- func (f *ParamTypesFunc) AgentID(v wasmclient.AgentID)
- func (f *ParamTypesFunc) Bool(v bool)
- func (f *ParamTypesFunc) Bytes(v []byte)
- func (f *ParamTypesFunc) ChainID(v wasmclient.ChainID)
- func (f *ParamTypesFunc) Color(v wasmclient.Color)
- func (f *ParamTypesFunc) Hash(v wasmclient.Hash)
- func (f *ParamTypesFunc) Hname(v wasmclient.Hname)
- func (f *ParamTypesFunc) Int16(v int16)
- func (f *ParamTypesFunc) Int32(v int32)
- func (f *ParamTypesFunc) Int64(v int64)
- func (f *ParamTypesFunc) Int8(v int8)
- func (f *ParamTypesFunc) Param(v []byte)
- func (f *ParamTypesFunc) Post() wasmclient.Request
- func (f *ParamTypesFunc) RequestID(v wasmclient.RequestID)
- func (f *ParamTypesFunc) String(v string)
- func (f *ParamTypesFunc) Uint16(v uint16)
- func (f *ParamTypesFunc) Uint32(v uint32)
- func (f *ParamTypesFunc) Uint64(v uint64)
- func (f *ParamTypesFunc) Uint8(v uint8)
- type RandomFunc
- type TestWasmLibService
- func (s *TestWasmLibService) ArrayClear() ArrayClearFunc
- func (s *TestWasmLibService) ArrayCreate() ArrayCreateFunc
- func (s *TestWasmLibService) ArrayLength() ArrayLengthView
- func (s *TestWasmLibService) ArraySet() ArraySetFunc
- func (s *TestWasmLibService) ArrayValue() ArrayValueView
- func (s *TestWasmLibService) BlockRecord() BlockRecordView
- func (s *TestWasmLibService) BlockRecords() BlockRecordsView
- func (s *TestWasmLibService) GetRandom() GetRandomView
- func (s *TestWasmLibService) IotaBalance() IotaBalanceView
- func (s *TestWasmLibService) MapClear() MapClearFunc
- func (s *TestWasmLibService) MapCreate() MapCreateFunc
- func (s *TestWasmLibService) MapSet() MapSetFunc
- func (s *TestWasmLibService) MapValue() MapValueView
- func (s *TestWasmLibService) ParamTypes() ParamTypesFunc
- func (s *TestWasmLibService) Random() RandomFunc
- func (s *TestWasmLibService) TriggerEvent() TriggerEventFunc
- type TriggerEventFunc
Constants ¶
View Source
const ( ArgAddress = "address" ArgAgentID = "agentID" ArgBlockIndex = "blockIndex" ArgBool = "bool" ArgBytes = "bytes" ArgChainID = "chainID" ArgColor = "color" ArgHash = "hash" ArgHname = "hname" ArgIndex = "index" ArgInt16 = "int16" ArgInt32 = "int32" ArgInt64 = "int64" ArgInt8 = "int8" ArgKey = "key" ArgName = "name" ArgParam = "this" ArgRecordIndex = "recordIndex" ArgRequestID = "requestID" ArgString = "string" ArgUint16 = "uint16" ArgUint32 = "uint32" ArgUint64 = "uint64" ArgUint8 = "uint8" ArgValue = "value" ResCount = "count" ResIotas = "iotas" ResLength = "length" ResRandom = "random" ResRecord = "record" ResValue = "value" )
Variables ¶
View Source
var EventHandlers = map[string]func([]string){
"testwasmlib.test": onTestWasmLibTestThunk,
}
Functions ¶
func OnTestWasmLibTest ¶
func OnTestWasmLibTest(event *EventTest)
Types ¶
type ArrayClearFunc ¶
type ArrayClearFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*ArrayClearFunc) Name ¶
func (f *ArrayClearFunc) Name(v string)
func (*ArrayClearFunc) Post ¶
func (f *ArrayClearFunc) Post() wasmclient.Request
type ArrayCreateFunc ¶
type ArrayCreateFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*ArrayCreateFunc) Name ¶
func (f *ArrayCreateFunc) Name(v string)
func (*ArrayCreateFunc) Post ¶
func (f *ArrayCreateFunc) Post() wasmclient.Request
type ArrayLengthResults ¶
type ArrayLengthResults struct {
// contains filtered or unexported fields
}
func (*ArrayLengthResults) Length ¶
func (r *ArrayLengthResults) Length() int32
type ArrayLengthView ¶
type ArrayLengthView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*ArrayLengthView) Call ¶
func (f *ArrayLengthView) Call() ArrayLengthResults
func (*ArrayLengthView) Name ¶
func (f *ArrayLengthView) Name(v string)
type ArraySetFunc ¶
type ArraySetFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*ArraySetFunc) Index ¶
func (f *ArraySetFunc) Index(v int32)
func (*ArraySetFunc) Name ¶
func (f *ArraySetFunc) Name(v string)
func (*ArraySetFunc) Post ¶
func (f *ArraySetFunc) Post() wasmclient.Request
func (*ArraySetFunc) Value ¶
func (f *ArraySetFunc) Value(v string)
type ArrayValueResults ¶
type ArrayValueResults struct {
// contains filtered or unexported fields
}
func (*ArrayValueResults) Value ¶
func (r *ArrayValueResults) Value() string
type ArrayValueView ¶
type ArrayValueView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*ArrayValueView) Call ¶
func (f *ArrayValueView) Call() ArrayValueResults
func (*ArrayValueView) Index ¶
func (f *ArrayValueView) Index(v int32)
func (*ArrayValueView) Name ¶
func (f *ArrayValueView) Name(v string)
type BlockRecordResults ¶
type BlockRecordResults struct {
// contains filtered or unexported fields
}
func (*BlockRecordResults) Record ¶
func (r *BlockRecordResults) Record() []byte
type BlockRecordView ¶
type BlockRecordView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*BlockRecordView) BlockIndex ¶
func (f *BlockRecordView) BlockIndex(v int32)
func (*BlockRecordView) Call ¶
func (f *BlockRecordView) Call() BlockRecordResults
func (*BlockRecordView) RecordIndex ¶
func (f *BlockRecordView) RecordIndex(v int32)
type BlockRecordsResults ¶
type BlockRecordsResults struct {
// contains filtered or unexported fields
}
func (*BlockRecordsResults) Count ¶
func (r *BlockRecordsResults) Count() int32
type BlockRecordsView ¶
type BlockRecordsView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*BlockRecordsView) BlockIndex ¶
func (f *BlockRecordsView) BlockIndex(v int32)
func (*BlockRecordsView) Call ¶
func (f *BlockRecordsView) Call() BlockRecordsResults
type EventTest ¶
type EventTest struct { wasmclient.Event Address wasmclient.Address Name string }
type GetRandomResults ¶
type GetRandomResults struct {
// contains filtered or unexported fields
}
func (*GetRandomResults) Random ¶
func (r *GetRandomResults) Random() int64
type GetRandomView ¶
type GetRandomView struct {
wasmclient.ClientView
}
func (*GetRandomView) Call ¶
func (f *GetRandomView) Call() GetRandomResults
type IotaBalanceResults ¶
type IotaBalanceResults struct {
// contains filtered or unexported fields
}
func (*IotaBalanceResults) Iotas ¶
func (r *IotaBalanceResults) Iotas() int64
type IotaBalanceView ¶
type IotaBalanceView struct {
wasmclient.ClientView
}
func (*IotaBalanceView) Call ¶
func (f *IotaBalanceView) Call() IotaBalanceResults
type MapClearFunc ¶
type MapClearFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*MapClearFunc) Name ¶
func (f *MapClearFunc) Name(v string)
func (*MapClearFunc) Post ¶
func (f *MapClearFunc) Post() wasmclient.Request
type MapCreateFunc ¶
type MapCreateFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*MapCreateFunc) Name ¶
func (f *MapCreateFunc) Name(v string)
func (*MapCreateFunc) Post ¶
func (f *MapCreateFunc) Post() wasmclient.Request
type MapSetFunc ¶
type MapSetFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*MapSetFunc) Key ¶
func (f *MapSetFunc) Key(v string)
func (*MapSetFunc) Name ¶
func (f *MapSetFunc) Name(v string)
func (*MapSetFunc) Post ¶
func (f *MapSetFunc) Post() wasmclient.Request
func (*MapSetFunc) Value ¶
func (f *MapSetFunc) Value(v string)
type MapValueResults ¶
type MapValueResults struct {
// contains filtered or unexported fields
}
func (*MapValueResults) Value ¶
func (r *MapValueResults) Value() string
type MapValueView ¶
type MapValueView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*MapValueView) Call ¶
func (f *MapValueView) Call() MapValueResults
func (*MapValueView) Key ¶
func (f *MapValueView) Key(v string)
func (*MapValueView) Name ¶
func (f *MapValueView) Name(v string)
type ParamTypesFunc ¶
type ParamTypesFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*ParamTypesFunc) Address ¶
func (f *ParamTypesFunc) Address(v wasmclient.Address)
func (*ParamTypesFunc) AgentID ¶
func (f *ParamTypesFunc) AgentID(v wasmclient.AgentID)
func (*ParamTypesFunc) Bool ¶
func (f *ParamTypesFunc) Bool(v bool)
func (*ParamTypesFunc) Bytes ¶
func (f *ParamTypesFunc) Bytes(v []byte)
func (*ParamTypesFunc) ChainID ¶
func (f *ParamTypesFunc) ChainID(v wasmclient.ChainID)
func (*ParamTypesFunc) Color ¶
func (f *ParamTypesFunc) Color(v wasmclient.Color)
func (*ParamTypesFunc) Hash ¶
func (f *ParamTypesFunc) Hash(v wasmclient.Hash)
func (*ParamTypesFunc) Hname ¶
func (f *ParamTypesFunc) Hname(v wasmclient.Hname)
func (*ParamTypesFunc) Int16 ¶
func (f *ParamTypesFunc) Int16(v int16)
func (*ParamTypesFunc) Int32 ¶
func (f *ParamTypesFunc) Int32(v int32)
func (*ParamTypesFunc) Int64 ¶
func (f *ParamTypesFunc) Int64(v int64)
func (*ParamTypesFunc) Int8 ¶
func (f *ParamTypesFunc) Int8(v int8)
func (*ParamTypesFunc) Param ¶
func (f *ParamTypesFunc) Param(v []byte)
func (*ParamTypesFunc) Post ¶
func (f *ParamTypesFunc) Post() wasmclient.Request
func (*ParamTypesFunc) RequestID ¶
func (f *ParamTypesFunc) RequestID(v wasmclient.RequestID)
func (*ParamTypesFunc) String ¶
func (f *ParamTypesFunc) String(v string)
func (*ParamTypesFunc) Uint16 ¶
func (f *ParamTypesFunc) Uint16(v uint16)
func (*ParamTypesFunc) Uint32 ¶
func (f *ParamTypesFunc) Uint32(v uint32)
func (*ParamTypesFunc) Uint64 ¶
func (f *ParamTypesFunc) Uint64(v uint64)
func (*ParamTypesFunc) Uint8 ¶
func (f *ParamTypesFunc) Uint8(v uint8)
type RandomFunc ¶
type RandomFunc struct {
wasmclient.ClientFunc
}
func (*RandomFunc) Post ¶
func (f *RandomFunc) Post() wasmclient.Request
type TestWasmLibService ¶
type TestWasmLibService struct {
wasmclient.Service
}
func NewTestWasmLibService ¶
func NewTestWasmLibService(cl *wasmclient.ServiceClient, chainID string) (*TestWasmLibService, error)
func (*TestWasmLibService) ArrayClear ¶
func (s *TestWasmLibService) ArrayClear() ArrayClearFunc
func (*TestWasmLibService) ArrayCreate ¶
func (s *TestWasmLibService) ArrayCreate() ArrayCreateFunc
func (*TestWasmLibService) ArrayLength ¶
func (s *TestWasmLibService) ArrayLength() ArrayLengthView
func (*TestWasmLibService) ArraySet ¶
func (s *TestWasmLibService) ArraySet() ArraySetFunc
func (*TestWasmLibService) ArrayValue ¶
func (s *TestWasmLibService) ArrayValue() ArrayValueView
func (*TestWasmLibService) BlockRecord ¶
func (s *TestWasmLibService) BlockRecord() BlockRecordView
func (*TestWasmLibService) BlockRecords ¶
func (s *TestWasmLibService) BlockRecords() BlockRecordsView
func (*TestWasmLibService) GetRandom ¶
func (s *TestWasmLibService) GetRandom() GetRandomView
func (*TestWasmLibService) IotaBalance ¶
func (s *TestWasmLibService) IotaBalance() IotaBalanceView
func (*TestWasmLibService) MapClear ¶
func (s *TestWasmLibService) MapClear() MapClearFunc
func (*TestWasmLibService) MapCreate ¶
func (s *TestWasmLibService) MapCreate() MapCreateFunc
func (*TestWasmLibService) MapSet ¶
func (s *TestWasmLibService) MapSet() MapSetFunc
func (*TestWasmLibService) MapValue ¶
func (s *TestWasmLibService) MapValue() MapValueView
func (*TestWasmLibService) ParamTypes ¶
func (s *TestWasmLibService) ParamTypes() ParamTypesFunc
func (*TestWasmLibService) Random ¶
func (s *TestWasmLibService) Random() RandomFunc
func (*TestWasmLibService) TriggerEvent ¶
func (s *TestWasmLibService) TriggerEvent() TriggerEventFunc
type TriggerEventFunc ¶
type TriggerEventFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*TriggerEventFunc) Address ¶
func (f *TriggerEventFunc) Address(v wasmclient.Address)
func (*TriggerEventFunc) Name ¶
func (f *TriggerEventFunc) Name(v string)
func (*TriggerEventFunc) Post ¶
func (f *TriggerEventFunc) Post() wasmclient.Request
Click to show internal directories.
Click to hide internal directories.