Documentation
¶
Overview ¶
Package hello is a generated protocol buffer package.
It is generated from these files:
hello.proto
It has these top-level messages:
HelloRequest HelloReply
This thrift interface description was generated from from one more protobuf descriptors.
It is generated from these files:
hello.proto
It has these top-level structs:
HelloRequest HelloReply
Index ¶
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- type GreeterClient
- type GreeterImpl
- type GreeterServer
- type HelloReply
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)
- func (m *HelloRequest) GetAge() int32
- func (m *HelloRequest) GetAmap() map[int32]int32
- func (m *HelloRequest) GetArg() isHelloRequest_Arg
- func (m *HelloRequest) GetBlip() *HelloReply
- func (m *HelloRequest) GetInts() []int32
- func (m *HelloRequest) GetName() string
- func (*HelloRequest) ProtoMessage()
- func (m *HelloRequest) Reset()
- func (m *HelloRequest) String() string
- func (*HelloRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type HelloRequest_Age
- type HelloRequest_Blip
- type HelloRequest_Name
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type GreeterClient ¶
type GreeterClient interface {
// Sends a greeting
SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}
func NewGreeterClient ¶
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
type GreeterImpl ¶
type GreeterImpl struct {
Client GreeterClient
}
func (*GreeterImpl) SayHello ¶
func (self *GreeterImpl) SayHello(in *thrift_pkg.HelloRequest) (*thrift_pkg.HelloReply, error)
type GreeterServer ¶
type GreeterServer interface {
// Sends a greeting
SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}
type HelloReply ¶
type HelloReply struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
Integer int32 `protobuf:"varint,2,opt,name=integer" json:"integer,omitempty"`
Bloop bool `protobuf:"varint,3,opt,name=bloop" json:"bloop,omitempty"`
}
The response message containing the greetings
func (*HelloReply) Descriptor ¶
func (*HelloReply) Descriptor() ([]byte, []int)
func (*HelloReply) GetBloop ¶
func (m *HelloReply) GetBloop() bool
func (*HelloReply) GetInteger ¶
func (m *HelloReply) GetInteger() int32
func (*HelloReply) GetMessage ¶
func (m *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) Reset ¶
func (m *HelloReply) Reset()
func (*HelloReply) String ¶
func (m *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct {
// Types that are valid to be assigned to Arg:
// *HelloRequest_Name
// *HelloRequest_Age
// *HelloRequest_Blip
Arg isHelloRequest_Arg `protobuf_oneof:"arg"`
Ints []int32 `protobuf:"varint,4,rep,packed,name=ints" json:"ints,omitempty"`
Amap map[int32]int32 `` /* 130-byte string literal not displayed */
}
The request message containing the user's name.
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) GetAge ¶
func (m *HelloRequest) GetAge() int32
func (*HelloRequest) GetAmap ¶
func (m *HelloRequest) GetAmap() map[int32]int32
func (*HelloRequest) GetArg ¶
func (m *HelloRequest) GetArg() isHelloRequest_Arg
func (*HelloRequest) GetBlip ¶
func (m *HelloRequest) GetBlip() *HelloReply
func (*HelloRequest) GetInts ¶
func (m *HelloRequest) GetInts() []int32
func (*HelloRequest) GetName ¶
func (m *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (m *HelloRequest) String() string
func (*HelloRequest) XXX_OneofFuncs ¶
func (*HelloRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type HelloRequest_Age ¶
type HelloRequest_Age struct {
Age int32 `protobuf:"varint,2,opt,name=age,oneof"`
}
type HelloRequest_Blip ¶
type HelloRequest_Blip struct {
Blip *HelloReply `protobuf:"bytes,3,opt,name=blip,oneof"`
}
type HelloRequest_Name ¶
type HelloRequest_Name struct {
Name string `protobuf:"bytes,1,opt,name=name,oneof"`
}
Click to show internal directories.
Click to hide internal directories.