Documentation ¶
Overview ¶
Package example is a generated protocol buffer package.
It is generated from these files:
proto/example.proto
It has these top-level messages:
User Void
Package example is a generated protocol buffer package.
It is generated from these files:
proto/example.proto
It has these top-level messages:
User Void
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type User ¶
type User struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*User) Descriptor ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
type UserServiceClient ¶
type UserServiceClient interface {
AddUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*Void, error)
}
func NewUserServiceClient ¶
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient
type UserServiceServer ¶
type Void ¶
type Void struct { }
func (*Void) Descriptor ¶
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.