Documentation
¶
Index ¶
- type Client
- func (c *Client) Block(ctx context.Context, height int64) (*tmcoretypes.ResultBlock, error)
- func (c *Client) Conn() *grpc.ClientConn
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Stop(_ context.Context) error
- func (c *Client) Txs(ctx context.Context, height int64, txs tmtypes.Txs) ([]*tx.GetTxResponse, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { TmsService tmservice.ServiceClient TxService tx.ServiceClient // contains filtered or unexported fields }
func (*Client) Block ¶
func (c *Client) Block(ctx context.Context, height int64) (*tmcoretypes.ResultBlock, error)
func (*Client) Conn ¶
func (c *Client) Conn() *grpc.ClientConn
type Config ¶
type Config struct { Host string `env:"GRPC_URL" envDefault:"http://localhost:9090"` SecureConnection bool `env:"GRPC_SECURE_CONNECTION" envDefault:"false"` MetricsEnabled bool `env:"METRICS_ENABLED" envDefault:"false"` MaxReceiveMessageSize int `env:"GRPC_MAX_RECEIVE_MESSAGE_SIZE_BYTES" envDefault:"5242880"` // 5MB Timeout time.Duration `env:"GRPC_TIMEOUT" envDefault:"15s"` }
Click to show internal directories.
Click to hide internal directories.