Documentation ¶
Index ¶
- func RegisterHelloServer(s *grpc.Server, srv HelloServer)
- func RegisterWorldServer(s *grpc.Server, srv WorldServer)
- type HelloClient
- type HelloServer
- type SayHelloRequest
- func (*SayHelloRequest) Descriptor() ([]byte, []int)
- func (m *SayHelloRequest) GetPassword() string
- func (m *SayHelloRequest) GetYourName() string
- func (*SayHelloRequest) ProtoMessage()
- func (m *SayHelloRequest) Reset()
- func (m *SayHelloRequest) String() string
- func (m *SayHelloRequest) XXX_DiscardUnknown()
- func (m *SayHelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SayHelloRequest) XXX_Merge(src proto.Message)
- func (m *SayHelloRequest) XXX_Size() int
- func (m *SayHelloRequest) XXX_Unmarshal(b []byte) error
- type SayHelloResponse
- func (*SayHelloResponse) Descriptor() ([]byte, []int)
- func (m *SayHelloResponse) GetMessage() string
- func (*SayHelloResponse) ProtoMessage()
- func (m *SayHelloResponse) Reset()
- func (m *SayHelloResponse) String() string
- func (m *SayHelloResponse) XXX_DiscardUnknown()
- func (m *SayHelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SayHelloResponse) XXX_Merge(src proto.Message)
- func (m *SayHelloResponse) XXX_Size() int
- func (m *SayHelloResponse) XXX_Unmarshal(b []byte) error
- type SayWorldRequest
- func (*SayWorldRequest) Descriptor() ([]byte, []int)
- func (m *SayWorldRequest) GetPassword() string
- func (m *SayWorldRequest) GetYourWold() string
- func (*SayWorldRequest) ProtoMessage()
- func (m *SayWorldRequest) Reset()
- func (m *SayWorldRequest) String() string
- func (m *SayWorldRequest) XXX_DiscardUnknown()
- func (m *SayWorldRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SayWorldRequest) XXX_Merge(src proto.Message)
- func (m *SayWorldRequest) XXX_Size() int
- func (m *SayWorldRequest) XXX_Unmarshal(b []byte) error
- type SayWorldResponse
- func (*SayWorldResponse) Descriptor() ([]byte, []int)
- func (m *SayWorldResponse) GetMessage() string
- func (*SayWorldResponse) ProtoMessage()
- func (m *SayWorldResponse) Reset()
- func (m *SayWorldResponse) String() string
- func (m *SayWorldResponse) XXX_DiscardUnknown()
- func (m *SayWorldResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SayWorldResponse) XXX_Merge(src proto.Message)
- func (m *SayWorldResponse) XXX_Size() int
- func (m *SayWorldResponse) XXX_Unmarshal(b []byte) error
- type WorldClient
- type WorldServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHelloServer ¶
func RegisterHelloServer(s *grpc.Server, srv HelloServer)
func RegisterWorldServer ¶
func RegisterWorldServer(s *grpc.Server, srv WorldServer)
Types ¶
type HelloClient ¶
type HelloClient interface {
SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error)
}
HelloClient is the client API for Hello service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloClient ¶
func NewHelloClient(cc *grpc.ClientConn) HelloClient
type HelloServer ¶
type HelloServer interface {
SayHello(context.Context, *SayHelloRequest) (*SayHelloResponse, error)
}
HelloServer is the server API for Hello service.
type SayHelloRequest ¶
type SayHelloRequest struct { YourName string `protobuf:"bytes,1,opt,name=yourName,proto3" json:"yourName,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayHelloRequest) Descriptor ¶
func (*SayHelloRequest) Descriptor() ([]byte, []int)
func (*SayHelloRequest) GetPassword ¶
func (m *SayHelloRequest) GetPassword() string
func (*SayHelloRequest) GetYourName ¶
func (m *SayHelloRequest) GetYourName() string
func (*SayHelloRequest) ProtoMessage ¶
func (*SayHelloRequest) ProtoMessage()
func (*SayHelloRequest) Reset ¶
func (m *SayHelloRequest) Reset()
func (*SayHelloRequest) String ¶
func (m *SayHelloRequest) String() string
func (*SayHelloRequest) XXX_DiscardUnknown ¶
func (m *SayHelloRequest) XXX_DiscardUnknown()
func (*SayHelloRequest) XXX_Marshal ¶
func (m *SayHelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SayHelloRequest) XXX_Merge ¶
func (dst *SayHelloRequest) XXX_Merge(src proto.Message)
func (*SayHelloRequest) XXX_Size ¶
func (m *SayHelloRequest) XXX_Size() int
func (*SayHelloRequest) XXX_Unmarshal ¶
func (m *SayHelloRequest) XXX_Unmarshal(b []byte) error
type SayHelloResponse ¶
type SayHelloResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayHelloResponse) Descriptor ¶
func (*SayHelloResponse) Descriptor() ([]byte, []int)
func (*SayHelloResponse) GetMessage ¶
func (m *SayHelloResponse) GetMessage() string
func (*SayHelloResponse) ProtoMessage ¶
func (*SayHelloResponse) ProtoMessage()
func (*SayHelloResponse) Reset ¶
func (m *SayHelloResponse) Reset()
func (*SayHelloResponse) String ¶
func (m *SayHelloResponse) String() string
func (*SayHelloResponse) XXX_DiscardUnknown ¶
func (m *SayHelloResponse) XXX_DiscardUnknown()
func (*SayHelloResponse) XXX_Marshal ¶
func (m *SayHelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SayHelloResponse) XXX_Merge ¶
func (dst *SayHelloResponse) XXX_Merge(src proto.Message)
func (*SayHelloResponse) XXX_Size ¶
func (m *SayHelloResponse) XXX_Size() int
func (*SayHelloResponse) XXX_Unmarshal ¶
func (m *SayHelloResponse) XXX_Unmarshal(b []byte) error
type SayWorldRequest ¶
type SayWorldRequest struct { YourWold string `protobuf:"bytes,1,opt,name=yourWold,proto3" json:"yourWold,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayWorldRequest) Descriptor ¶
func (*SayWorldRequest) Descriptor() ([]byte, []int)
func (*SayWorldRequest) GetPassword ¶
func (m *SayWorldRequest) GetPassword() string
func (*SayWorldRequest) GetYourWold ¶
func (m *SayWorldRequest) GetYourWold() string
func (*SayWorldRequest) ProtoMessage ¶
func (*SayWorldRequest) ProtoMessage()
func (*SayWorldRequest) Reset ¶
func (m *SayWorldRequest) Reset()
func (*SayWorldRequest) String ¶
func (m *SayWorldRequest) String() string
func (*SayWorldRequest) XXX_DiscardUnknown ¶
func (m *SayWorldRequest) XXX_DiscardUnknown()
func (*SayWorldRequest) XXX_Marshal ¶
func (m *SayWorldRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SayWorldRequest) XXX_Merge ¶
func (dst *SayWorldRequest) XXX_Merge(src proto.Message)
func (*SayWorldRequest) XXX_Size ¶
func (m *SayWorldRequest) XXX_Size() int
func (*SayWorldRequest) XXX_Unmarshal ¶
func (m *SayWorldRequest) XXX_Unmarshal(b []byte) error
type SayWorldResponse ¶
type SayWorldResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayWorldResponse) Descriptor ¶
func (*SayWorldResponse) Descriptor() ([]byte, []int)
func (*SayWorldResponse) GetMessage ¶
func (m *SayWorldResponse) GetMessage() string
func (*SayWorldResponse) ProtoMessage ¶
func (*SayWorldResponse) ProtoMessage()
func (*SayWorldResponse) Reset ¶
func (m *SayWorldResponse) Reset()
func (*SayWorldResponse) String ¶
func (m *SayWorldResponse) String() string
func (*SayWorldResponse) XXX_DiscardUnknown ¶
func (m *SayWorldResponse) XXX_DiscardUnknown()
func (*SayWorldResponse) XXX_Marshal ¶
func (m *SayWorldResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SayWorldResponse) XXX_Merge ¶
func (dst *SayWorldResponse) XXX_Merge(src proto.Message)
func (*SayWorldResponse) XXX_Size ¶
func (m *SayWorldResponse) XXX_Size() int
func (*SayWorldResponse) XXX_Unmarshal ¶
func (m *SayWorldResponse) XXX_Unmarshal(b []byte) error
type WorldClient ¶
type WorldClient interface {
SayWorld(ctx context.Context, in *SayWorldRequest, opts ...grpc.CallOption) (*SayWorldResponse, error)
}
WorldClient is the client API for World service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWorldClient ¶
func NewWorldClient(cc *grpc.ClientConn) WorldClient
type WorldServer ¶
type WorldServer interface {
SayWorld(context.Context, *SayWorldRequest) (*SayWorldResponse, error)
}
WorldServer is the server API for World service.
Click to show internal directories.
Click to hide internal directories.