Documentation ¶
Index ¶
- func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
- func RegisterEmptyServiceServer(s *grpc.Server, srv EmptyServiceServer)
- func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
- type Echo
- func (*Echo) Descriptor() ([]byte, []int)
- func (m *Echo) GetPayload() []byte
- func (*Echo) ProtoMessage()
- func (m *Echo) Reset()
- func (m *Echo) String() string
- func (m *Echo) XXX_DiscardUnknown()
- func (m *Echo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Echo) XXX_Merge(src proto.Message)
- func (m *Echo) XXX_Size() int
- func (m *Echo) XXX_Unmarshal(b []byte) error
- type EchoServiceClient
- type EchoServiceServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type EmptyServiceClient
- type EmptyServiceServer
- type EmptyService_EmptyStreamClient
- type EmptyService_EmptyStreamServer
- type TestServiceClient
- type TestServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
func RegisterEmptyServiceServer ¶
func RegisterEmptyServiceServer(s *grpc.Server, srv EmptyServiceServer)
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
Types ¶
type Echo ¶
type Echo struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Echo) Descriptor ¶
func (*Echo) GetPayload ¶
func (*Echo) ProtoMessage ¶
func (*Echo) ProtoMessage()
func (*Echo) XXX_DiscardUnknown ¶
func (m *Echo) XXX_DiscardUnknown()
func (*Echo) XXX_Unmarshal ¶
type EchoServiceClient ¶
type EchoServiceClient interface {
EchoCall(ctx context.Context, in *Echo, opts ...grpc.CallOption) (*Echo, error)
}
func NewEchoServiceClient ¶
func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient
type EchoServiceServer ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type EmptyServiceClient ¶
type EmptyServiceClient interface { EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) EmptyStream(ctx context.Context, opts ...grpc.CallOption) (EmptyService_EmptyStreamClient, error) }
func NewEmptyServiceClient ¶
func NewEmptyServiceClient(cc *grpc.ClientConn) EmptyServiceClient
type EmptyServiceServer ¶
type TestServiceClient ¶
type TestServiceClient interface {
EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}
func NewTestServiceClient ¶
func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient
Click to show internal directories.
Click to hide internal directories.