Documentation
¶
Index ¶
- func New() *vm.VM
- type BalanceArgs
- type BalanceReply
- type ContentArgs
- type ContentReply
- type Controller
- func (c *Controller) Accepted(ctx context.Context, blk *chain.StatelessBlock) error
- func (c *Controller) Initialize(inner *vm.VM, snowCtx *snow.Context, gatherer ametrics.MultiGatherer, ...) (vm.Config, vm.Genesis, builder.Builder, gossiper.Gossiper, vm.KVDatabase, ...)
- func (*Controller) Rejected(context.Context, *chain.StatelessBlock) error
- func (c *Controller) Rules(t int64) chain.Rules
- type GenesisReply
- type GetTxArgs
- type GetTxReply
- type Handler
- func (h *Handler) Balance(req *http.Request, args *BalanceArgs, reply *BalanceReply) error
- func (h *Handler) Content(req *http.Request, args *ContentArgs, reply *ContentReply) error
- func (h *Handler) Genesis(_ *http.Request, _ *struct{}, reply *GenesisReply) (err error)
- func (h *Handler) GetTx(req *http.Request, args *GetTxArgs, reply *GetTxReply) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BalanceArgs ¶
type BalanceArgs struct {
Address string `json:"address"`
}
type BalanceReply ¶
type ContentArgs ¶
type ContentReply ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Accepted ¶
func (c *Controller) Accepted(ctx context.Context, blk *chain.StatelessBlock) error
func (*Controller) Initialize ¶
func (c *Controller) Initialize( inner *vm.VM, snowCtx *snow.Context, gatherer ametrics.MultiGatherer, genesisBytes []byte, upgradeBytes []byte, configBytes []byte, ) ( vm.Config, vm.Genesis, builder.Builder, gossiper.Gossiper, vm.KVDatabase, database.Database, vm.Handlers, chain.ActionRegistry, chain.AuthRegistry, error, )
func (*Controller) Rejected ¶
func (*Controller) Rejected(context.Context, *chain.StatelessBlock) error
type GenesisReply ¶
type GetTxReply ¶
type Handler ¶
type Handler struct { *vm.Handler // embed standard functionality // contains filtered or unexported fields }
func (*Handler) Balance ¶
func (h *Handler) Balance(req *http.Request, args *BalanceArgs, reply *BalanceReply) error
func (*Handler) Content ¶
func (h *Handler) Content(req *http.Request, args *ContentArgs, reply *ContentReply) error
Click to show internal directories.
Click to hide internal directories.