Documentation ¶
Index ¶
- Variables
- func ShutdownGRPC() error
- func StartupGRPC() error
- type GRPC
- func (g *GRPC) Create(ctx context.Context, req *pb.User) (*wrapperspb.StringValue, error)
- func (g *GRPC) Destroy(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)
- func (g *GRPC) Find(ctx context.Context, req *wrapperspb.StringValue) (*pb.User, error)
- func (g *GRPC) List(_ *emptypb.Empty, resp pb.Account_ListServer) error
- func (g *GRPC) Version(ctx context.Context, _ *emptypb.Empty) (*wrapperspb.StringValue, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Host = "0.0.0.0" Port = 27323 Endpoints = []string{} RevokeEtcdConn func() error Key = "grpclb/service/account" )
Functions ¶
func ShutdownGRPC ¶
func ShutdownGRPC() error
func StartupGRPC ¶
func StartupGRPC() error
Types ¶
type GRPC ¶
type GRPC struct {
pb.UnimplementedAccountServer
}
func (*GRPC) Create ¶
func (g *GRPC) Create(ctx context.Context, req *pb.User) (*wrapperspb.StringValue, error)
func (*GRPC) Destroy ¶
func (g *GRPC) Destroy(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) Version ¶
func (g *GRPC) Version(ctx context.Context, _ *emptypb.Empty) (*wrapperspb.StringValue, error)
Click to show internal directories.
Click to hide internal directories.