Documentation ¶
Index ¶
- func DefaultClientInterceptors(logger zerolog.Logger) []grpc.UnaryClientInterceptor
- func NewConnection(target string, logger zerolog.Logger) (*grpc.ClientConn, error)
- func NewConnectionWithInterceptors(target string, inter ...grpc.UnaryClientInterceptor) (*grpc.ClientConn, error)
- func NewConnectionWithMetrics(target string, metricsNamespace string, logger zerolog.Logger) (*grpc.ClientConn, error)
- type Client
- type ClosableClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClientInterceptors ¶ added in v0.3.2
func DefaultClientInterceptors(logger zerolog.Logger) []grpc.UnaryClientInterceptor
func NewConnection ¶
func NewConnectionWithInterceptors ¶ added in v0.3.2
func NewConnectionWithInterceptors( target string, inter ...grpc.UnaryClientInterceptor, ) (*grpc.ClientConn, error)
func NewConnectionWithMetrics ¶ added in v0.3.2
Types ¶
type Client ¶
type Client interface { GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.BlockHeader, error) ExecuteScriptAtBlockHeight(ctx context.Context, height uint64, script []byte, arguments []cadence.Value) (cadence.Value, error) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, error) GetTransaction(ctx context.Context, txID flow.Identifier) (*flow.Transaction, error) GetEventsForHeightRange(ctx context.Context, query flowgrpc.EventRangeQuery) ([]flow.BlockEvents, error) GetCollection(ctx context.Context, colID flow.Identifier) (*flow.Collection, error) }
func NewClientFromConnection ¶
func NewClientFromConnection( conn grpc.ClientConnInterface, ) Client
Click to show internal directories.
Click to hide internal directories.