Documentation ¶
Overview ¶
Package stringproto is a generated protocol buffer package.
It is generated from these files:
stringproto.proto
It has these top-level messages:
UpperRequest UpperResponse CountRequest CountResponse
Index ¶
- func RegisterStringServiceDefaultDecoder(svr orion.Server, decoder orion.Decoder)
- func RegisterStringServiceDefaultEncoder(svr orion.Server, encoder orion.Encoder)
- func RegisterStringServiceOrionServer(srv interface{}, orionServer orion.Server) error
- func RegisterStringServiceServer(s *grpc.Server, srv StringServiceServer)
- type CountRequest
- type CountResponse
- type StringServiceClient
- type StringServiceServer
- type UpperRequest
- type UpperResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStringServiceDefaultDecoder ¶
DefaultDecoder
func RegisterStringServiceDefaultEncoder ¶
DefaultEncoder
func RegisterStringServiceOrionServer ¶
RegisterStringServiceOrionServer registers StringService to Orion server Services need to pass either ServiceFactory or ServiceFactoryV2 implementation
func RegisterStringServiceServer ¶
func RegisterStringServiceServer(s *grpc.Server, srv StringServiceServer)
Types ¶
type CountRequest ¶
type CountRequest struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*CountRequest) Descriptor ¶
func (*CountRequest) Descriptor() ([]byte, []int)
func (*CountRequest) GetMsg ¶
func (m *CountRequest) GetMsg() string
func (*CountRequest) ProtoMessage ¶
func (*CountRequest) ProtoMessage()
func (*CountRequest) Reset ¶
func (m *CountRequest) Reset()
func (*CountRequest) String ¶
func (m *CountRequest) String() string
type CountResponse ¶
type CountResponse struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*CountResponse) Descriptor ¶
func (*CountResponse) Descriptor() ([]byte, []int)
func (*CountResponse) GetCount ¶
func (m *CountResponse) GetCount() int64
func (*CountResponse) ProtoMessage ¶
func (*CountResponse) ProtoMessage()
func (*CountResponse) Reset ¶
func (m *CountResponse) Reset()
func (*CountResponse) String ¶
func (m *CountResponse) String() string
type StringServiceClient ¶
type StringServiceClient interface { Upper(ctx context.Context, in *UpperRequest, opts ...grpc.CallOption) (*UpperResponse, error) Count(ctx context.Context, in *CountRequest, opts ...grpc.CallOption) (*CountResponse, error) }
func NewStringServiceClient ¶
func NewStringServiceClient(cc *grpc.ClientConn) StringServiceClient
type StringServiceServer ¶
type StringServiceServer interface { Upper(context.Context, *UpperRequest) (*UpperResponse, error) Count(context.Context, *CountRequest) (*CountResponse, error) }
type UpperRequest ¶
type UpperRequest struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*UpperRequest) Descriptor ¶
func (*UpperRequest) Descriptor() ([]byte, []int)
func (*UpperRequest) GetMsg ¶
func (m *UpperRequest) GetMsg() string
func (*UpperRequest) ProtoMessage ¶
func (*UpperRequest) ProtoMessage()
func (*UpperRequest) Reset ¶
func (m *UpperRequest) Reset()
func (*UpperRequest) String ¶
func (m *UpperRequest) String() string
type UpperResponse ¶
type UpperResponse struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*UpperResponse) Descriptor ¶
func (*UpperResponse) Descriptor() ([]byte, []int)
func (*UpperResponse) GetMsg ¶
func (m *UpperResponse) GetMsg() string
func (*UpperResponse) ProtoMessage ¶
func (*UpperResponse) ProtoMessage()
func (*UpperResponse) Reset ¶
func (m *UpperResponse) Reset()
func (*UpperResponse) String ¶
func (m *UpperResponse) String() string
Click to show internal directories.
Click to hide internal directories.