server

package
v0.0.0-...-d2b7790 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GrpcHost string
	GrpcPort int
)

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	ServiceName string
	ExecTimeout time.Duration
	Client      *clientv3.Client

	pb.UnimplementedAccountServer
	// contains filtered or unexported fields
}

func (*GRPC) Add

func (g *GRPC) Add(ctx context.Context, req *pb.User) (*wrapperspb.StringValue, error)

func (*GRPC) Del

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

func (*GRPC) Find

func (g *GRPC) Find(ctx context.Context, req *wrapperspb.StringValue) (*pb.User, error)

func (*GRPC) List

func (g *GRPC) List(_ *emptypb.Empty, resp pb.Account_ListServer) error

func (*GRPC) ShutdownGRPC

func (g *GRPC) ShutdownGRPC() error

func (*GRPC) StartupGRPC

func (g *GRPC) StartupGRPC() error

Jump to

Keyboard shortcuts

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