Documentation ¶
Index ¶
- type Client
- type GRPCClient
- func (c *GRPCClient) GetBlocks(ctx context.Context, v *proto.Version) (*proto.Blocks, error)
- func (c *GRPCClient) Handshake(ctx context.Context, v *proto.Version) (*proto.Version, error)
- func (c *GRPCClient) NewBlock(ctx context.Context, b *proto.Block) (*proto.Block, error)
- func (c *GRPCClient) NewTransaction(ctx context.Context, t *proto.Transaction) (*proto.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Handshake(ctx context.Context, v *proto.Version) (*proto.Version, error) NewTransaction(ctx context.Context, t *proto.Transaction) (*proto.Transaction, error) NewBlock(ctx context.Context, b *proto.Block) (*proto.Block, error) GetBlocks(ctx context.Context, v *proto.Version) (*proto.Blocks, error) }
type GRPCClient ¶
type GRPCClient struct { Endpoint string // contains filtered or unexported fields }
func NewGRPCClient ¶
func NewGRPCClient(endpoint string) (*GRPCClient, error)
func (*GRPCClient) NewTransaction ¶
func (c *GRPCClient) NewTransaction(ctx context.Context, t *proto.Transaction) (*proto.Transaction, error)
Click to show internal directories.
Click to hide internal directories.