grpc

package
v0.78.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotMapped = errors.New("error not mapped")

Functions

func NewBlockExplorerAPI

func NewBlockExplorerAPI(store *store.Store, config Config, log *logging.Logger) pb.BlockExplorerServiceServer

Types

type Config

type Config struct {
	Reflection         encoding.Bool     `description:"Enable GRPC reflection, required for grpc-ui"                              long:"reflection"`
	Level              encoding.LogLevel `` /* 146-byte string literal not displayed */
	MaxPageSizeDefault uint32            `description:"How many results to return per page if client does not specify explicitly" long:"default-page-size"`
}

func NewDefaultConfig

func NewDefaultConfig() Config

type Server

type Server struct {
	Config
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg Config, log *logging.Logger, blockExplorerServer pb.BlockExplorerServiceServer, lis net.Listener) *Server

func (*Server) Serve

func (g *Server) Serve() error

func (*Server) Stop added in v0.73.0

func (g *Server) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL