grpcserver

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	daemon.WatcherConfigFunc
	daemon.ShutdownFunc
	// contains filtered or unexported fields
}

Connector is a wrapped grpc server.

func New

func New(prefix string, opts ...Option) *Connector

New get a instance of grpc.

type Option

type Option func(*Connector)

Option .

func WithLogger

func WithLogger(log logrus.FieldLogger) Option

WithLogger .

func WithServerOptions

func WithServerOptions(opts ...grpc.ServerOption) Option

WithServerOptions .

func WithServices

func WithServices(rs RegisterServices) Option

WithServices .

type RegisterServices

type RegisterServices func(srv *grpc.Server)

RegisterServices will register any services.

Jump to

Keyboard shortcuts

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