Documentation
¶
Index ¶
- Variables
- func Handle(deps *std.Deps, env std.Env, info std.MessageInfo, data []byte) (*std.HandleResultOk, error)
- func Init(deps *std.Deps, env std.Env, info std.MessageInfo, msg []byte) (*std.InitResultOk, error)
- func Query(deps *std.Deps, env std.Env, data []byte) (*std.QueryResponseOk, error)
- func SaveState(storage std.Storage, state *State) error
- type CountResponse
- type HandleMsg
- type Increment
- type InitMsg
- type QueryMsg
- type Reset
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var StateKey = []byte("State")
Functions ¶
func Handle ¶
func Handle(deps *std.Deps, env std.Env, info std.MessageInfo, data []byte) (*std.HandleResultOk, error)
Types ¶
type CountResponse ¶
type CountResponse struct {
Count uint64 `json:"count"`
}
type HandleMsg ¶
type HandleMsg struct { Increment ezjson.EmptyStruct `json:"increment,opt_seen"` Reset Reset `json:"reset"` }
type QueryMsg ¶
type QueryMsg struct {
Count ezjson.EmptyStruct `json:"get_count,opt_seen"`
}
Click to show internal directories.
Click to hide internal directories.