Documentation ¶
Index ¶
- func Listen(addr string) (net.Listener, error)
- func Serve(listener net.Listener, opts ...Option) error
- type Option
- func WithBlockResultsService(bs *store.BlockStore, ss sm.Store, logger log.Logger) Option
- func WithBlockService(store *store.BlockStore, eventBus *types.EventBus, logger log.Logger) Option
- func WithGRPCOption(opt grpc.ServerOption) Option
- func WithLogger(logger log.Logger) Option
- func WithVersionService() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*serverBuilder)
Option is any function that allows for configuration of the gRPC server during its creation.
func WithBlockResultsService ¶
func WithBlockService ¶
WithBlockService enables the block service on the CometBFT server.
func WithGRPCOption ¶
func WithGRPCOption(opt grpc.ServerOption) Option
WithGRPCOption allows one to specify Google gRPC server options during the construction of the CometBFT gRPC server.
func WithLogger ¶
WithLogger enables logging using the given logger. If not specified, the gRPC server does not log anything.
func WithVersionService ¶
func WithVersionService() Option
WithVersionService enables the version service on the CometBFT server.
Click to show internal directories.
Click to hide internal directories.