Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
JoinStringsRequest JoinStringsResponse ProvideStringsRequest ProvideStringsResponse ReceiveStringsRequest ReceiveStringsResponse ExchangeStringsRequest ExchangeStringsResponse
Index ¶
- func RegisterSimpleServiceServer(s *grpc.Server, srv SimpleServiceServer)
- type ExchangeStringsRequest
- func (*ExchangeStringsRequest) Descriptor() ([]byte, []int)
- func (m *ExchangeStringsRequest) GetString_() string
- func (m *ExchangeStringsRequest) GetWantReturn() bool
- func (*ExchangeStringsRequest) ProtoMessage()
- func (m *ExchangeStringsRequest) Reset()
- func (m *ExchangeStringsRequest) String() string
- type ExchangeStringsResponse
- type JoinStringsRequest
- type JoinStringsResponse
- type ProvideStringsRequest
- type ProvideStringsResponse
- type ReceiveStringsRequest
- type ReceiveStringsResponse
- type SimpleServiceClient
- type SimpleServiceServer
- type SimpleService_ExchangeStringsClient
- type SimpleService_ExchangeStringsServer
- type SimpleService_ProvideStringsClient
- type SimpleService_ProvideStringsServer
- type SimpleService_ReceiveStringsClient
- type SimpleService_ReceiveStringsServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSimpleServiceServer ¶
func RegisterSimpleServiceServer(s *grpc.Server, srv SimpleServiceServer)
Types ¶
type ExchangeStringsRequest ¶
type ExchangeStringsRequest struct { String_ string `protobuf:"bytes,1,opt,name=string" json:"string,omitempty"` WantReturn bool `protobuf:"varint,2,opt,name=want_return,json=wantReturn" json:"want_return,omitempty"` }
func (*ExchangeStringsRequest) Descriptor ¶
func (*ExchangeStringsRequest) Descriptor() ([]byte, []int)
func (*ExchangeStringsRequest) GetString_ ¶
func (m *ExchangeStringsRequest) GetString_() string
func (*ExchangeStringsRequest) GetWantReturn ¶
func (m *ExchangeStringsRequest) GetWantReturn() bool
func (*ExchangeStringsRequest) ProtoMessage ¶
func (*ExchangeStringsRequest) ProtoMessage()
func (*ExchangeStringsRequest) Reset ¶
func (m *ExchangeStringsRequest) Reset()
func (*ExchangeStringsRequest) String ¶
func (m *ExchangeStringsRequest) String() string
type ExchangeStringsResponse ¶
type ExchangeStringsResponse struct {
Received []string `protobuf:"bytes,1,rep,name=received" json:"received,omitempty"`
}
func (*ExchangeStringsResponse) Descriptor ¶
func (*ExchangeStringsResponse) Descriptor() ([]byte, []int)
func (*ExchangeStringsResponse) GetReceived ¶
func (m *ExchangeStringsResponse) GetReceived() []string
func (*ExchangeStringsResponse) ProtoMessage ¶
func (*ExchangeStringsResponse) ProtoMessage()
func (*ExchangeStringsResponse) Reset ¶
func (m *ExchangeStringsResponse) Reset()
func (*ExchangeStringsResponse) String ¶
func (m *ExchangeStringsResponse) String() string
type JoinStringsRequest ¶
type JoinStringsRequest struct { Strings []string `protobuf:"bytes,1,rep,name=strings" json:"strings,omitempty"` Delimiter string `protobuf:"bytes,2,opt,name=delimiter" json:"delimiter,omitempty"` }
func (*JoinStringsRequest) Descriptor ¶
func (*JoinStringsRequest) Descriptor() ([]byte, []int)
func (*JoinStringsRequest) GetDelimiter ¶
func (m *JoinStringsRequest) GetDelimiter() string
func (*JoinStringsRequest) GetStrings ¶
func (m *JoinStringsRequest) GetStrings() []string
func (*JoinStringsRequest) ProtoMessage ¶
func (*JoinStringsRequest) ProtoMessage()
func (*JoinStringsRequest) Reset ¶
func (m *JoinStringsRequest) Reset()
func (*JoinStringsRequest) String ¶
func (m *JoinStringsRequest) String() string
type JoinStringsResponse ¶
type JoinStringsResponse struct {
Joined string `protobuf:"bytes,1,opt,name=joined" json:"joined,omitempty"`
}
func (*JoinStringsResponse) Descriptor ¶
func (*JoinStringsResponse) Descriptor() ([]byte, []int)
func (*JoinStringsResponse) GetJoined ¶
func (m *JoinStringsResponse) GetJoined() string
func (*JoinStringsResponse) ProtoMessage ¶
func (*JoinStringsResponse) ProtoMessage()
func (*JoinStringsResponse) Reset ¶
func (m *JoinStringsResponse) Reset()
func (*JoinStringsResponse) String ¶
func (m *JoinStringsResponse) String() string
type ProvideStringsRequest ¶
type ProvideStringsRequest struct {
Count uint32 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*ProvideStringsRequest) Descriptor ¶
func (*ProvideStringsRequest) Descriptor() ([]byte, []int)
func (*ProvideStringsRequest) GetCount ¶
func (m *ProvideStringsRequest) GetCount() uint32
func (*ProvideStringsRequest) ProtoMessage ¶
func (*ProvideStringsRequest) ProtoMessage()
func (*ProvideStringsRequest) Reset ¶
func (m *ProvideStringsRequest) Reset()
func (*ProvideStringsRequest) String ¶
func (m *ProvideStringsRequest) String() string
type ProvideStringsResponse ¶
type ProvideStringsResponse struct {
String_ string `protobuf:"bytes,1,opt,name=string" json:"string,omitempty"`
}
func (*ProvideStringsResponse) Descriptor ¶
func (*ProvideStringsResponse) Descriptor() ([]byte, []int)
func (*ProvideStringsResponse) GetString_ ¶
func (m *ProvideStringsResponse) GetString_() string
func (*ProvideStringsResponse) ProtoMessage ¶
func (*ProvideStringsResponse) ProtoMessage()
func (*ProvideStringsResponse) Reset ¶
func (m *ProvideStringsResponse) Reset()
func (*ProvideStringsResponse) String ¶
func (m *ProvideStringsResponse) String() string
type ReceiveStringsRequest ¶
type ReceiveStringsRequest struct {
String_ string `protobuf:"bytes,1,opt,name=string" json:"string,omitempty"`
}
func (*ReceiveStringsRequest) Descriptor ¶
func (*ReceiveStringsRequest) Descriptor() ([]byte, []int)
func (*ReceiveStringsRequest) GetString_ ¶
func (m *ReceiveStringsRequest) GetString_() string
func (*ReceiveStringsRequest) ProtoMessage ¶
func (*ReceiveStringsRequest) ProtoMessage()
func (*ReceiveStringsRequest) Reset ¶
func (m *ReceiveStringsRequest) Reset()
func (*ReceiveStringsRequest) String ¶
func (m *ReceiveStringsRequest) String() string
type ReceiveStringsResponse ¶
type ReceiveStringsResponse struct {
Received []string `protobuf:"bytes,1,rep,name=received" json:"received,omitempty"`
}
func (*ReceiveStringsResponse) Descriptor ¶
func (*ReceiveStringsResponse) Descriptor() ([]byte, []int)
func (*ReceiveStringsResponse) GetReceived ¶
func (m *ReceiveStringsResponse) GetReceived() []string
func (*ReceiveStringsResponse) ProtoMessage ¶
func (*ReceiveStringsResponse) ProtoMessage()
func (*ReceiveStringsResponse) Reset ¶
func (m *ReceiveStringsResponse) Reset()
func (*ReceiveStringsResponse) String ¶
func (m *ReceiveStringsResponse) String() string
type SimpleServiceClient ¶
type SimpleServiceClient interface { JoinStrings(ctx context.Context, in *JoinStringsRequest, opts ...grpc.CallOption) (*JoinStringsResponse, error) ProvideStrings(ctx context.Context, in *ProvideStringsRequest, opts ...grpc.CallOption) (SimpleService_ProvideStringsClient, error) ReceiveStrings(ctx context.Context, opts ...grpc.CallOption) (SimpleService_ReceiveStringsClient, error) ExchangeStrings(ctx context.Context, opts ...grpc.CallOption) (SimpleService_ExchangeStringsClient, error) }
func NewSimpleServiceClient ¶
func NewSimpleServiceClient(cc *grpc.ClientConn) SimpleServiceClient
type SimpleServiceServer ¶
type SimpleServiceServer interface { JoinStrings(context.Context, *JoinStringsRequest) (*JoinStringsResponse, error) ProvideStrings(*ProvideStringsRequest, SimpleService_ProvideStringsServer) error ReceiveStrings(SimpleService_ReceiveStringsServer) error ExchangeStrings(SimpleService_ExchangeStringsServer) error }
type SimpleService_ExchangeStringsClient ¶
type SimpleService_ExchangeStringsClient interface { Send(*ExchangeStringsRequest) error Recv() (*ExchangeStringsResponse, error) grpc.ClientStream }
type SimpleService_ExchangeStringsServer ¶
type SimpleService_ExchangeStringsServer interface { Send(*ExchangeStringsResponse) error Recv() (*ExchangeStringsRequest, error) grpc.ServerStream }
type SimpleService_ProvideStringsClient ¶
type SimpleService_ProvideStringsClient interface { Recv() (*ProvideStringsResponse, error) grpc.ClientStream }
type SimpleService_ProvideStringsServer ¶
type SimpleService_ProvideStringsServer interface { Send(*ProvideStringsResponse) error grpc.ServerStream }
type SimpleService_ReceiveStringsClient ¶
type SimpleService_ReceiveStringsClient interface { Send(*ReceiveStringsRequest) error CloseAndRecv() (*ReceiveStringsResponse, error) grpc.ClientStream }
type SimpleService_ReceiveStringsServer ¶
type SimpleService_ReceiveStringsServer interface { SendAndClose(*ReceiveStringsResponse) error Recv() (*ReceiveStringsRequest, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.