Documentation ¶
Overview ¶
Package server is a generated protocol buffer package.
It is generated from these files:
guid.proto
It has these top-level messages:
Req Resp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGuidServer ¶
func RegisterGuidServer(s *grpc.Server, srv GuidServer)
Types ¶
type GrpcServer ¶
type GrpcServer struct {
// contains filtered or unexported fields
}
func NewGrpcServer ¶
func NewGrpcServer(generator common.Generator) *GrpcServer
func (*GrpcServer) Start ¶
func (this *GrpcServer) Start() error
func (*GrpcServer) Wait ¶
func (this *GrpcServer) Wait()
type GuidClient ¶
type GuidClient interface {
GetGuid(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Resp, error)
}
func NewGuidClient ¶
func NewGuidClient(cc *grpc.ClientConn) GuidClient
type Req ¶
type Req struct {
XXX_unrecognized []byte `json:"-"`
}
func (*Req) Descriptor ¶
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
type Resp ¶
type Resp struct { Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` Guid *uint64 `protobuf:"varint,2,req,name=guid" json:"guid,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Resp) Descriptor ¶
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.