Documentation ¶
Overview ¶
Package simple_proto is a generated protocol buffer package.
It is generated from these files:
simple.proto
It has these top-level messages:
EchoRequest EchoResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSimpleServiceOrionServer ¶
func RegisterSimpleServiceOrionServer(srv orion.ServiceFactory, orionServer orion.Server)
RegisterSimpleServiceOrionServer registers SimpleService to Orion server
func RegisterSimpleServiceServer ¶
func RegisterSimpleServiceServer(s *grpc.Server, srv SimpleServiceServer)
Types ¶
type EchoRequest ¶
type EchoRequest struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*EchoRequest) Descriptor ¶
func (*EchoRequest) Descriptor() ([]byte, []int)
func (*EchoRequest) GetMsg ¶
func (m *EchoRequest) GetMsg() string
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) Reset ¶
func (m *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (m *EchoRequest) String() string
type EchoResponse ¶
type EchoResponse struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*EchoResponse) Descriptor ¶
func (*EchoResponse) Descriptor() ([]byte, []int)
func (*EchoResponse) GetMsg ¶
func (m *EchoResponse) GetMsg() string
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) Reset ¶
func (m *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (m *EchoResponse) String() string
type SimpleServiceClient ¶
type SimpleServiceClient interface {
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}
func NewSimpleServiceClient ¶
func NewSimpleServiceClient(cc *grpc.ClientConn) SimpleServiceClient
type SimpleServiceServer ¶
type SimpleServiceServer interface {
Echo(context.Context, *EchoRequest) (*EchoResponse, error)
}
Click to show internal directories.
Click to hide internal directories.