hosts

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterRpcServer

type RegisterRpcServer func(s *grpc.Server, srv *RpcHost)

type RpcHost

type RpcHost struct {
	*api.API
	*logrus.Entry
	// contains filtered or unexported fields
}

func NewRpcHost

func NewRpcHost(a *api.API, name string, hostAndPort string, servers []RegisterRpcServer) *RpcHost

func (*RpcHost) ListenAndServe

func (h *RpcHost) ListenAndServe(opts ...grpc.ServerOption)

func (*RpcHost) RpcError

func (h *RpcHost) RpcError(c codes.Code, msg string) error

func (*RpcHost) RpcErrorf

func (h *RpcHost) RpcErrorf(c codes.Code, format string, a ...interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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