Documentation
¶
Index ¶
- func RegisterHelloServer(s *grpc.Server, srv HelloServer)
- type HelloClient
- type HelloServer
- type MyGreeting
- func (*MyGreeting) Descriptor() ([]byte, []int)
- func (m *MyGreeting) GetGreeting() string
- func (*MyGreeting) ProtoMessage()
- func (m *MyGreeting) Reset()
- func (m *MyGreeting) String() string
- func (m *MyGreeting) XXX_DiscardUnknown()
- func (m *MyGreeting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MyGreeting) XXX_Merge(src proto.Message)
- func (m *MyGreeting) XXX_Size() int
- func (m *MyGreeting) XXX_Unmarshal(b []byte) error
- type MyTarget
- func (*MyTarget) Descriptor() ([]byte, []int)
- func (m *MyTarget) GetTarget() string
- func (*MyTarget) ProtoMessage()
- func (m *MyTarget) Reset()
- func (m *MyTarget) String() string
- func (m *MyTarget) XXX_DiscardUnknown()
- func (m *MyTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MyTarget) XXX_Merge(src proto.Message)
- func (m *MyTarget) XXX_Size() int
- func (m *MyTarget) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHelloServer ¶
func RegisterHelloServer(s *grpc.Server, srv HelloServer)
Types ¶
type HelloClient ¶
type HelloClient interface {
SayHello(ctx context.Context, in *MyTarget, opts ...grpc.CallOption) (*MyGreeting, error)
}
func NewSimpleHelloClient ¶
func NewSimpleHelloClient(connection *grpc.ClientConn) HelloClient
type HelloServer ¶
type HelloServer interface {
SayHello(context.Context, *MyTarget) (*MyGreeting, error)
}
type MyGreeting ¶
type MyGreeting struct { Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MyGreeting) Descriptor ¶
func (*MyGreeting) Descriptor() ([]byte, []int)
func (*MyGreeting) GetGreeting ¶
func (m *MyGreeting) GetGreeting() string
func (*MyGreeting) ProtoMessage ¶
func (*MyGreeting) ProtoMessage()
func (*MyGreeting) Reset ¶
func (m *MyGreeting) Reset()
func (*MyGreeting) String ¶
func (m *MyGreeting) String() string
func (*MyGreeting) XXX_DiscardUnknown ¶
func (m *MyGreeting) XXX_DiscardUnknown()
func (*MyGreeting) XXX_Marshal ¶
func (m *MyGreeting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MyGreeting) XXX_Merge ¶
func (m *MyGreeting) XXX_Merge(src proto.Message)
func (*MyGreeting) XXX_Size ¶
func (m *MyGreeting) XXX_Size() int
func (*MyGreeting) XXX_Unmarshal ¶
func (m *MyGreeting) XXX_Unmarshal(b []byte) error
type MyTarget ¶
type MyTarget struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MyTarget) Descriptor ¶
func (*MyTarget) ProtoMessage ¶
func (*MyTarget) ProtoMessage()
func (*MyTarget) XXX_DiscardUnknown ¶
func (m *MyTarget) XXX_DiscardUnknown()
func (*MyTarget) XXX_Marshal ¶
func (*MyTarget) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.