Versions in this module Expand all Collapse all v0 v0.1.0 Dec 24, 2020 Changes in this version + var Handshake = plugin.HandshakeConfig + var PluginMap = map[string]plugin.Plugin + type BlockClient struct + func (b *BlockClient) Accept() error + func (b *BlockClient) Bytes() []byte + func (b *BlockClient) ID() ids.ID + func (b *BlockClient) Parent() snowman.Block + func (b *BlockClient) Reject() error + func (b *BlockClient) Status() choices.Status + func (b *BlockClient) Verify() error + type Factory struct + Config string + Path string + func (f *Factory) New(ctx *snow.Context) (interface{}, error) + type Plugin struct + func New(vm block.ChainVM) *Plugin + func (p *Plugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error) + func (p *Plugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error + type VMClient struct + func NewClient(client vmproto.VMClient, broker *plugin.GRPCBroker) *VMClient + func (vm *VMClient) Bootstrapped() error + func (vm *VMClient) Bootstrapping() error + func (vm *VMClient) BuildBlock() (snowman.Block, error) + func (vm *VMClient) CreateHandlers() map[string]*common.HTTPHandler + func (vm *VMClient) GetBlock(id ids.ID) (snowman.Block, error) + func (vm *VMClient) Health() (interface{}, error) + func (vm *VMClient) Initialize(ctx *snow.Context, db database.Database, genesisBytes []byte, ...) error + func (vm *VMClient) LastAccepted() ids.ID + func (vm *VMClient) ParseBlock(bytes []byte) (snowman.Block, error) + func (vm *VMClient) SetPreference(id ids.ID) + func (vm *VMClient) SetProcess(proc *plugin.Client) + func (vm *VMClient) Shutdown() error + type VMServer struct + func NewServer(vm block.ChainVM, broker *plugin.GRPCBroker) *VMServer + func (vm *VMServer) BlockAccept(_ context.Context, req *vmproto.BlockAcceptRequest) (*vmproto.BlockAcceptResponse, error) + func (vm *VMServer) BlockReject(_ context.Context, req *vmproto.BlockRejectRequest) (*vmproto.BlockRejectResponse, error) + func (vm *VMServer) BlockVerify(_ context.Context, req *vmproto.BlockVerifyRequest) (*vmproto.BlockVerifyResponse, error) + func (vm *VMServer) Bootstrapped(context.Context, *vmproto.BootstrappedRequest) (*vmproto.BootstrappedResponse, error) + func (vm *VMServer) Bootstrapping(context.Context, *vmproto.BootstrappingRequest) (*vmproto.BootstrappingResponse, error) + func (vm *VMServer) BuildBlock(_ context.Context, _ *vmproto.BuildBlockRequest) (*vmproto.BuildBlockResponse, error) + func (vm *VMServer) CreateHandlers(_ context.Context, req *vmproto.CreateHandlersRequest) (*vmproto.CreateHandlersResponse, error) + func (vm *VMServer) GetBlock(_ context.Context, req *vmproto.GetBlockRequest) (*vmproto.GetBlockResponse, error) + func (vm *VMServer) Health(_ context.Context, req *vmproto.HealthRequest) (*vmproto.HealthResponse, error) + func (vm *VMServer) Initialize(_ context.Context, req *vmproto.InitializeRequest) (*vmproto.InitializeResponse, error) + func (vm *VMServer) ParseBlock(_ context.Context, req *vmproto.ParseBlockRequest) (*vmproto.ParseBlockResponse, error) + func (vm *VMServer) SetPreference(_ context.Context, req *vmproto.SetPreferenceRequest) (*vmproto.SetPreferenceResponse, error) + func (vm *VMServer) Shutdown(context.Context, *vmproto.ShutdownRequest) (*vmproto.ShutdownResponse, error)