server

package
v0.0.0-...-75d25b6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Host           = "0.0.0.0"
	Port           = 19090
	Endpoints      = []string{}
	RevokeEtcdConn func() error
	Key            = "grpclb/service/database"
)

Functions

func ShutdownGRPC

func ShutdownGRPC() error

func StartupGRPC

func StartupGRPC() error

Types

type GRPC

type GRPC struct {
	pb.UnimplementedServiceServer
}

func (*GRPC) Collect

func (g *GRPC) Collect(ctx context.Context, _ *emptypb.Empty) (*wrapperspb.StringValue, error)

func (*GRPC) PullData

func (g *GRPC) PullData(req *wrapperspb.StringValue, resp pb.Service_PullDataServer) error

func (*GRPC) Version

func (g *GRPC) Version(ctx context.Context, _ *emptypb.Empty) (*wrapperspb.StringValue, error)

Jump to

Keyboard shortcuts

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