rpc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer added in v0.1.1

func NewGRPCServer(node partitionNode, opts ...Option) (*grpcServer, error)

func NewRESTServer added in v0.1.1

func NewRESTServer(addr string, maxBodySize int64, registrars ...Registrar) *http.Server

Types

type Option added in v0.1.1

type Option func(*Options)

func WithMaxGetBlocksBatchSize added in v0.1.1

func WithMaxGetBlocksBatchSize(maxGetBlocksBatchSize uint64) Option

type Options added in v0.1.1

type Options struct {
	// contains filtered or unexported fields
}

type Registrar added in v0.2.0

type Registrar interface {
	Register(r *mux.Router)
}

Registrar registers new HTTP handlers for given router.

type RegistrarFunc added in v0.2.0

type RegistrarFunc func(r *mux.Router)

RegistrarFunc type is an adapter to allow the use of ordinary function as Registrar.

func InfoEndpoints added in v0.2.0

func InfoEndpoints(node partitionNode, name string, self *network.Peer) RegistrarFunc

func MetricsEndpoints added in v0.2.0

func MetricsEndpoints() RegistrarFunc

func NodeEndpoints added in v0.2.0

func NodeEndpoints(node partitionNode) RegistrarFunc

func (RegistrarFunc) Register added in v0.2.0

func (f RegistrarFunc) Register(r *mux.Router)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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