grpc

package
v0.0.0-...-141c82c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT 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     `long:"reflection" description:"Enable GRPC reflection, required for grpc-ui"`
	Level              encoding.LogLevel `long:"log-level" choice:"debug" choice:"info" choice:"warning"`
	MaxPageSizeDefault uint32            `long:"default-page-size" description:"How many results to return per page if client does not specify explicitly"`
}

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) *Server

func (*Server) Serve

func (g *Server) Serve(lis net.Listener) error

Jump to

Keyboard shortcuts

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