grpc

package
v0.72.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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     `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) *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