Documentation ¶
Index ¶
- func RegisterGreetingServiceServer(s *grpc.Server, srv GreetingServiceServer)
- type GreetingServiceClient
- type GreetingServiceServer
- type GreetingText
- func (*GreetingText) Descriptor() ([]byte, []int)
- func (m *GreetingText) GetText() string
- func (*GreetingText) ProtoMessage()
- func (m *GreetingText) Reset()
- func (m *GreetingText) String() string
- func (m *GreetingText) XXX_DiscardUnknown()
- func (m *GreetingText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GreetingText) XXX_Merge(src proto.Message)
- func (m *GreetingText) XXX_Size() int
- func (m *GreetingText) XXX_Unmarshal(b []byte) error
- type Person
- func (*Person) Descriptor() ([]byte, []int)
- func (m *Person) GetName() string
- func (*Person) ProtoMessage()
- func (m *Person) Reset()
- func (m *Person) String() string
- func (m *Person) XXX_DiscardUnknown()
- func (m *Person) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Person) XXX_Merge(src proto.Message)
- func (m *Person) XXX_Size() int
- func (m *Person) XXX_Unmarshal(b []byte) error
- type UnimplementedGreetingServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreetingServiceServer ¶
func RegisterGreetingServiceServer(s *grpc.Server, srv GreetingServiceServer)
Types ¶
type GreetingServiceClient ¶
type GreetingServiceClient interface {
Greeting(ctx context.Context, in *Person, opts ...grpc.CallOption) (*GreetingText, error)
}
GreetingServiceClient is the client API for GreetingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreetingServiceClient ¶
func NewGreetingServiceClient(cc *grpc.ClientConn) GreetingServiceClient
type GreetingServiceServer ¶
type GreetingServiceServer interface {
Greeting(context.Context, *Person) (*GreetingText, error)
}
GreetingServiceServer is the server API for GreetingService service.
type GreetingText ¶
type GreetingText struct { Text string `protobuf:"bytes,1,opt,name=Text,proto3" json:"Text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GreetingText) Descriptor ¶
func (*GreetingText) Descriptor() ([]byte, []int)
func (*GreetingText) GetText ¶
func (m *GreetingText) GetText() string
func (*GreetingText) ProtoMessage ¶
func (*GreetingText) ProtoMessage()
func (*GreetingText) Reset ¶
func (m *GreetingText) Reset()
func (*GreetingText) String ¶
func (m *GreetingText) String() string
func (*GreetingText) XXX_DiscardUnknown ¶
func (m *GreetingText) XXX_DiscardUnknown()
func (*GreetingText) XXX_Marshal ¶
func (m *GreetingText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GreetingText) XXX_Merge ¶
func (m *GreetingText) XXX_Merge(src proto.Message)
func (*GreetingText) XXX_Size ¶
func (m *GreetingText) XXX_Size() int
func (*GreetingText) XXX_Unmarshal ¶
func (m *GreetingText) XXX_Unmarshal(b []byte) error
type Person ¶
type Person struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Person) Descriptor ¶
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) XXX_DiscardUnknown ¶
func (m *Person) XXX_DiscardUnknown()
func (*Person) XXX_Marshal ¶
func (*Person) XXX_Unmarshal ¶
type UnimplementedGreetingServiceServer ¶
type UnimplementedGreetingServiceServer struct { }
UnimplementedGreetingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreetingServiceServer) Greeting ¶
func (*UnimplementedGreetingServiceServer) Greeting(ctx context.Context, req *Person) (*GreetingText, error)
Click to show internal directories.
Click to hide internal directories.