grpc

package
v0.0.0-...-dc60fe5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServerModule

type GRPCServerModule struct {
	module.Base

	Metrics *grpcprom.ServerMetrics
	// contains filtered or unexported fields
}

func NewGRPCServerModule

func NewGRPCServerModule(name string, options *Options) *GRPCServerModule

func (*GRPCServerModule) Cleanup

func (p *GRPCServerModule) Cleanup(_ context.Context)

func (*GRPCServerModule) Configure

func (p *GRPCServerModule) Configure() error

func (*GRPCServerModule) Init

func (p *GRPCServerModule) Init(ctx context.Context) error

func (*GRPCServerModule) Main

func (*GRPCServerModule) PeriodicTasks

func (p *GRPCServerModule) PeriodicTasks() []*module.TaskConfig

type Options

type Options struct {
	ServiceRegistry []RegistryEntry
}

type RegistryEntry

type RegistryEntry struct {
	ServiceDesc grpc.ServiceDesc
	Service     interface{}
}

Jump to

Keyboard shortcuts

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