rpc

package
v0.0.0-...-28a9172 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCBundle

type GRPCBundle struct {
	Server *grpc.Server
	// contains filtered or unexported fields
}

func NewGRPCBundle

func NewGRPCBundle(name string, opts ...GRPCOption) *GRPCBundle

func (*GRPCBundle) GetName

func (s *GRPCBundle) GetName() string

func (*GRPCBundle) Run

func (s *GRPCBundle) Run(ctx context.Context)

func (*GRPCBundle) Stop

func (s *GRPCBundle) Stop(ctx context.Context)

type GRPCOption

type GRPCOption func(bundle *GRPCBundle)

func GRPCListen

func GRPCListen(listenAddr string) GRPCOption

func GRPCServerFactory

func GRPCServerFactory(f func() *grpc.Server) GRPCOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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