Documentation ¶
Index ¶
- func RegisterGreetServiceServer(s *grpc.Server, srv GreetServiceServer)
- type GreetEveryoneRequest
- func (*GreetEveryoneRequest) Descriptor() ([]byte, []int)
- func (m *GreetEveryoneRequest) GetGreeting() *Greeting
- func (*GreetEveryoneRequest) ProtoMessage()
- func (m *GreetEveryoneRequest) Reset()
- func (m *GreetEveryoneRequest) String() string
- func (m *GreetEveryoneRequest) XXX_DiscardUnknown()
- func (m *GreetEveryoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GreetEveryoneRequest) XXX_Merge(src proto.Message)
- func (m *GreetEveryoneRequest) XXX_Size() int
- func (m *GreetEveryoneRequest) XXX_Unmarshal(b []byte) error
- type GreetEveryoneResponse
- func (*GreetEveryoneResponse) Descriptor() ([]byte, []int)
- func (m *GreetEveryoneResponse) GetResult() string
- func (*GreetEveryoneResponse) ProtoMessage()
- func (m *GreetEveryoneResponse) Reset()
- func (m *GreetEveryoneResponse) String() string
- func (m *GreetEveryoneResponse) XXX_DiscardUnknown()
- func (m *GreetEveryoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GreetEveryoneResponse) XXX_Merge(src proto.Message)
- func (m *GreetEveryoneResponse) XXX_Size() int
- func (m *GreetEveryoneResponse) XXX_Unmarshal(b []byte) error
- type GreetManyTimesRequest
- func (*GreetManyTimesRequest) Descriptor() ([]byte, []int)
- func (m *GreetManyTimesRequest) GetGreeting() *Greeting
- func (*GreetManyTimesRequest) ProtoMessage()
- func (m *GreetManyTimesRequest) Reset()
- func (m *GreetManyTimesRequest) String() string
- func (m *GreetManyTimesRequest) XXX_DiscardUnknown()
- func (m *GreetManyTimesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GreetManyTimesRequest) XXX_Merge(src proto.Message)
- func (m *GreetManyTimesRequest) XXX_Size() int
- func (m *GreetManyTimesRequest) XXX_Unmarshal(b []byte) error
- type GreetManyTimesResponse
- func (*GreetManyTimesResponse) Descriptor() ([]byte, []int)
- func (m *GreetManyTimesResponse) GetResult() string
- func (*GreetManyTimesResponse) ProtoMessage()
- func (m *GreetManyTimesResponse) Reset()
- func (m *GreetManyTimesResponse) String() string
- func (m *GreetManyTimesResponse) XXX_DiscardUnknown()
- func (m *GreetManyTimesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GreetManyTimesResponse) XXX_Merge(src proto.Message)
- func (m *GreetManyTimesResponse) XXX_Size() int
- func (m *GreetManyTimesResponse) XXX_Unmarshal(b []byte) error
- type GreetRequest
- func (*GreetRequest) Descriptor() ([]byte, []int)
- func (m *GreetRequest) GetGreeting() *Greeting
- func (*GreetRequest) ProtoMessage()
- func (m *GreetRequest) Reset()
- func (m *GreetRequest) String() string
- func (m *GreetRequest) XXX_DiscardUnknown()
- func (m *GreetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GreetRequest) XXX_Merge(src proto.Message)
- func (m *GreetRequest) XXX_Size() int
- func (m *GreetRequest) XXX_Unmarshal(b []byte) error
- type GreetResponse
- func (*GreetResponse) Descriptor() ([]byte, []int)
- func (m *GreetResponse) GetResult() string
- func (*GreetResponse) ProtoMessage()
- func (m *GreetResponse) Reset()
- func (m *GreetResponse) String() string
- func (m *GreetResponse) XXX_DiscardUnknown()
- func (m *GreetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GreetResponse) XXX_Merge(src proto.Message)
- func (m *GreetResponse) XXX_Size() int
- func (m *GreetResponse) XXX_Unmarshal(b []byte) error
- type GreetServiceClient
- type GreetServiceServer
- type GreetService_GreetEveryoneClient
- type GreetService_GreetEveryoneServer
- type GreetService_GreetManyTimesClient
- type GreetService_GreetManyTimesServer
- type GreetService_LongGreetClient
- type GreetService_LongGreetServer
- type Greeting
- func (*Greeting) Descriptor() ([]byte, []int)
- func (m *Greeting) GetFirstName() string
- func (m *Greeting) GetLastName() string
- func (*Greeting) ProtoMessage()
- func (m *Greeting) Reset()
- func (m *Greeting) String() string
- func (m *Greeting) XXX_DiscardUnknown()
- func (m *Greeting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Greeting) XXX_Merge(src proto.Message)
- func (m *Greeting) XXX_Size() int
- func (m *Greeting) XXX_Unmarshal(b []byte) error
- type LongGreetRequest
- func (*LongGreetRequest) Descriptor() ([]byte, []int)
- func (m *LongGreetRequest) GetGreeting() *Greeting
- func (*LongGreetRequest) ProtoMessage()
- func (m *LongGreetRequest) Reset()
- func (m *LongGreetRequest) String() string
- func (m *LongGreetRequest) XXX_DiscardUnknown()
- func (m *LongGreetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LongGreetRequest) XXX_Merge(src proto.Message)
- func (m *LongGreetRequest) XXX_Size() int
- func (m *LongGreetRequest) XXX_Unmarshal(b []byte) error
- type LongGreetResponse
- func (*LongGreetResponse) Descriptor() ([]byte, []int)
- func (m *LongGreetResponse) GetResult() string
- func (*LongGreetResponse) ProtoMessage()
- func (m *LongGreetResponse) Reset()
- func (m *LongGreetResponse) String() string
- func (m *LongGreetResponse) XXX_DiscardUnknown()
- func (m *LongGreetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LongGreetResponse) XXX_Merge(src proto.Message)
- func (m *LongGreetResponse) XXX_Size() int
- func (m *LongGreetResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedGreetServiceServer
- func (*UnimplementedGreetServiceServer) Greet(ctx context.Context, req *GreetRequest) (*GreetResponse, error)
- func (*UnimplementedGreetServiceServer) GreetEveryone(srv GreetService_GreetEveryoneServer) error
- func (*UnimplementedGreetServiceServer) GreetManyTimes(req *GreetManyTimesRequest, srv GreetService_GreetManyTimesServer) error
- func (*UnimplementedGreetServiceServer) LongGreet(srv GreetService_LongGreetServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreetServiceServer ¶
func RegisterGreetServiceServer(s *grpc.Server, srv GreetServiceServer)
Types ¶
type GreetEveryoneRequest ¶
type GreetEveryoneRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GreetEveryoneRequest) Descriptor ¶
func (*GreetEveryoneRequest) Descriptor() ([]byte, []int)
func (*GreetEveryoneRequest) GetGreeting ¶
func (m *GreetEveryoneRequest) GetGreeting() *Greeting
func (*GreetEveryoneRequest) ProtoMessage ¶
func (*GreetEveryoneRequest) ProtoMessage()
func (*GreetEveryoneRequest) Reset ¶
func (m *GreetEveryoneRequest) Reset()
func (*GreetEveryoneRequest) String ¶
func (m *GreetEveryoneRequest) String() string
func (*GreetEveryoneRequest) XXX_DiscardUnknown ¶
func (m *GreetEveryoneRequest) XXX_DiscardUnknown()
func (*GreetEveryoneRequest) XXX_Marshal ¶
func (m *GreetEveryoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GreetEveryoneRequest) XXX_Merge ¶
func (m *GreetEveryoneRequest) XXX_Merge(src proto.Message)
func (*GreetEveryoneRequest) XXX_Size ¶
func (m *GreetEveryoneRequest) XXX_Size() int
func (*GreetEveryoneRequest) XXX_Unmarshal ¶
func (m *GreetEveryoneRequest) XXX_Unmarshal(b []byte) error
type GreetEveryoneResponse ¶
type GreetEveryoneResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GreetEveryoneResponse) Descriptor ¶
func (*GreetEveryoneResponse) Descriptor() ([]byte, []int)
func (*GreetEveryoneResponse) GetResult ¶
func (m *GreetEveryoneResponse) GetResult() string
func (*GreetEveryoneResponse) ProtoMessage ¶
func (*GreetEveryoneResponse) ProtoMessage()
func (*GreetEveryoneResponse) Reset ¶
func (m *GreetEveryoneResponse) Reset()
func (*GreetEveryoneResponse) String ¶
func (m *GreetEveryoneResponse) String() string
func (*GreetEveryoneResponse) XXX_DiscardUnknown ¶
func (m *GreetEveryoneResponse) XXX_DiscardUnknown()
func (*GreetEveryoneResponse) XXX_Marshal ¶
func (m *GreetEveryoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GreetEveryoneResponse) XXX_Merge ¶
func (m *GreetEveryoneResponse) XXX_Merge(src proto.Message)
func (*GreetEveryoneResponse) XXX_Size ¶
func (m *GreetEveryoneResponse) XXX_Size() int
func (*GreetEveryoneResponse) XXX_Unmarshal ¶
func (m *GreetEveryoneResponse) XXX_Unmarshal(b []byte) error
type GreetManyTimesRequest ¶
type GreetManyTimesRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GreetManyTimesRequest) Descriptor ¶
func (*GreetManyTimesRequest) Descriptor() ([]byte, []int)
func (*GreetManyTimesRequest) GetGreeting ¶
func (m *GreetManyTimesRequest) GetGreeting() *Greeting
func (*GreetManyTimesRequest) ProtoMessage ¶
func (*GreetManyTimesRequest) ProtoMessage()
func (*GreetManyTimesRequest) Reset ¶
func (m *GreetManyTimesRequest) Reset()
func (*GreetManyTimesRequest) String ¶
func (m *GreetManyTimesRequest) String() string
func (*GreetManyTimesRequest) XXX_DiscardUnknown ¶
func (m *GreetManyTimesRequest) XXX_DiscardUnknown()
func (*GreetManyTimesRequest) XXX_Marshal ¶
func (m *GreetManyTimesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GreetManyTimesRequest) XXX_Merge ¶
func (m *GreetManyTimesRequest) XXX_Merge(src proto.Message)
func (*GreetManyTimesRequest) XXX_Size ¶
func (m *GreetManyTimesRequest) XXX_Size() int
func (*GreetManyTimesRequest) XXX_Unmarshal ¶
func (m *GreetManyTimesRequest) XXX_Unmarshal(b []byte) error
type GreetManyTimesResponse ¶
type GreetManyTimesResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GreetManyTimesResponse) Descriptor ¶
func (*GreetManyTimesResponse) Descriptor() ([]byte, []int)
func (*GreetManyTimesResponse) GetResult ¶
func (m *GreetManyTimesResponse) GetResult() string
func (*GreetManyTimesResponse) ProtoMessage ¶
func (*GreetManyTimesResponse) ProtoMessage()
func (*GreetManyTimesResponse) Reset ¶
func (m *GreetManyTimesResponse) Reset()
func (*GreetManyTimesResponse) String ¶
func (m *GreetManyTimesResponse) String() string
func (*GreetManyTimesResponse) XXX_DiscardUnknown ¶
func (m *GreetManyTimesResponse) XXX_DiscardUnknown()
func (*GreetManyTimesResponse) XXX_Marshal ¶
func (m *GreetManyTimesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GreetManyTimesResponse) XXX_Merge ¶
func (m *GreetManyTimesResponse) XXX_Merge(src proto.Message)
func (*GreetManyTimesResponse) XXX_Size ¶
func (m *GreetManyTimesResponse) XXX_Size() int
func (*GreetManyTimesResponse) XXX_Unmarshal ¶
func (m *GreetManyTimesResponse) XXX_Unmarshal(b []byte) error
type GreetRequest ¶
type GreetRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GreetRequest) Descriptor ¶
func (*GreetRequest) Descriptor() ([]byte, []int)
func (*GreetRequest) GetGreeting ¶
func (m *GreetRequest) GetGreeting() *Greeting
func (*GreetRequest) ProtoMessage ¶
func (*GreetRequest) ProtoMessage()
func (*GreetRequest) Reset ¶
func (m *GreetRequest) Reset()
func (*GreetRequest) String ¶
func (m *GreetRequest) String() string
func (*GreetRequest) XXX_DiscardUnknown ¶
func (m *GreetRequest) XXX_DiscardUnknown()
func (*GreetRequest) XXX_Marshal ¶
func (m *GreetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GreetRequest) XXX_Merge ¶
func (m *GreetRequest) XXX_Merge(src proto.Message)
func (*GreetRequest) XXX_Size ¶
func (m *GreetRequest) XXX_Size() int
func (*GreetRequest) XXX_Unmarshal ¶
func (m *GreetRequest) XXX_Unmarshal(b []byte) error
type GreetResponse ¶
type GreetResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GreetResponse) Descriptor ¶
func (*GreetResponse) Descriptor() ([]byte, []int)
func (*GreetResponse) GetResult ¶
func (m *GreetResponse) GetResult() string
func (*GreetResponse) ProtoMessage ¶
func (*GreetResponse) ProtoMessage()
func (*GreetResponse) Reset ¶
func (m *GreetResponse) Reset()
func (*GreetResponse) String ¶
func (m *GreetResponse) String() string
func (*GreetResponse) XXX_DiscardUnknown ¶
func (m *GreetResponse) XXX_DiscardUnknown()
func (*GreetResponse) XXX_Marshal ¶
func (m *GreetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GreetResponse) XXX_Merge ¶
func (m *GreetResponse) XXX_Merge(src proto.Message)
func (*GreetResponse) XXX_Size ¶
func (m *GreetResponse) XXX_Size() int
func (*GreetResponse) XXX_Unmarshal ¶
func (m *GreetResponse) XXX_Unmarshal(b []byte) error
type GreetServiceClient ¶
type GreetServiceClient interface { // Unary Greet(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (*GreetResponse, error) // Server streaming GreetManyTimes(ctx context.Context, in *GreetManyTimesRequest, opts ...grpc.CallOption) (GreetService_GreetManyTimesClient, error) // Client streaming LongGreet(ctx context.Context, opts ...grpc.CallOption) (GreetService_LongGreetClient, error) // Bi-directional(BiDi) streaming GreetEveryone(ctx context.Context, opts ...grpc.CallOption) (GreetService_GreetEveryoneClient, error) }
GreetServiceClient is the client API for GreetService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreetServiceClient ¶
func NewGreetServiceClient(cc *grpc.ClientConn) GreetServiceClient
type GreetServiceServer ¶
type GreetServiceServer interface { // Unary Greet(context.Context, *GreetRequest) (*GreetResponse, error) // Server streaming GreetManyTimes(*GreetManyTimesRequest, GreetService_GreetManyTimesServer) error // Client streaming LongGreet(GreetService_LongGreetServer) error // Bi-directional(BiDi) streaming GreetEveryone(GreetService_GreetEveryoneServer) error }
GreetServiceServer is the server API for GreetService service.
type GreetService_GreetEveryoneClient ¶
type GreetService_GreetEveryoneClient interface { Send(*GreetEveryoneRequest) error Recv() (*GreetEveryoneResponse, error) grpc.ClientStream }
type GreetService_GreetEveryoneServer ¶
type GreetService_GreetEveryoneServer interface { Send(*GreetEveryoneResponse) error Recv() (*GreetEveryoneRequest, error) grpc.ServerStream }
type GreetService_GreetManyTimesClient ¶
type GreetService_GreetManyTimesClient interface { Recv() (*GreetManyTimesResponse, error) grpc.ClientStream }
type GreetService_GreetManyTimesServer ¶
type GreetService_GreetManyTimesServer interface { Send(*GreetManyTimesResponse) error grpc.ServerStream }
type GreetService_LongGreetClient ¶
type GreetService_LongGreetClient interface { Send(*LongGreetRequest) error CloseAndRecv() (*LongGreetResponse, error) grpc.ClientStream }
type GreetService_LongGreetServer ¶
type GreetService_LongGreetServer interface { SendAndClose(*LongGreetResponse) error Recv() (*LongGreetRequest, error) grpc.ServerStream }
type Greeting ¶
type Greeting struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Greeting) Descriptor ¶
func (*Greeting) GetFirstName ¶
func (*Greeting) GetLastName ¶
func (*Greeting) ProtoMessage ¶
func (*Greeting) ProtoMessage()
func (*Greeting) XXX_DiscardUnknown ¶
func (m *Greeting) XXX_DiscardUnknown()
func (*Greeting) XXX_Marshal ¶
func (*Greeting) XXX_Unmarshal ¶
type LongGreetRequest ¶
type LongGreetRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LongGreetRequest) Descriptor ¶
func (*LongGreetRequest) Descriptor() ([]byte, []int)
func (*LongGreetRequest) GetGreeting ¶
func (m *LongGreetRequest) GetGreeting() *Greeting
func (*LongGreetRequest) ProtoMessage ¶
func (*LongGreetRequest) ProtoMessage()
func (*LongGreetRequest) Reset ¶
func (m *LongGreetRequest) Reset()
func (*LongGreetRequest) String ¶
func (m *LongGreetRequest) String() string
func (*LongGreetRequest) XXX_DiscardUnknown ¶
func (m *LongGreetRequest) XXX_DiscardUnknown()
func (*LongGreetRequest) XXX_Marshal ¶
func (m *LongGreetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LongGreetRequest) XXX_Merge ¶
func (m *LongGreetRequest) XXX_Merge(src proto.Message)
func (*LongGreetRequest) XXX_Size ¶
func (m *LongGreetRequest) XXX_Size() int
func (*LongGreetRequest) XXX_Unmarshal ¶
func (m *LongGreetRequest) XXX_Unmarshal(b []byte) error
type LongGreetResponse ¶
type LongGreetResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LongGreetResponse) Descriptor ¶
func (*LongGreetResponse) Descriptor() ([]byte, []int)
func (*LongGreetResponse) GetResult ¶
func (m *LongGreetResponse) GetResult() string
func (*LongGreetResponse) ProtoMessage ¶
func (*LongGreetResponse) ProtoMessage()
func (*LongGreetResponse) Reset ¶
func (m *LongGreetResponse) Reset()
func (*LongGreetResponse) String ¶
func (m *LongGreetResponse) String() string
func (*LongGreetResponse) XXX_DiscardUnknown ¶
func (m *LongGreetResponse) XXX_DiscardUnknown()
func (*LongGreetResponse) XXX_Marshal ¶
func (m *LongGreetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LongGreetResponse) XXX_Merge ¶
func (m *LongGreetResponse) XXX_Merge(src proto.Message)
func (*LongGreetResponse) XXX_Size ¶
func (m *LongGreetResponse) XXX_Size() int
func (*LongGreetResponse) XXX_Unmarshal ¶
func (m *LongGreetResponse) XXX_Unmarshal(b []byte) error
type UnimplementedGreetServiceServer ¶
type UnimplementedGreetServiceServer struct { }
UnimplementedGreetServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreetServiceServer) Greet ¶
func (*UnimplementedGreetServiceServer) Greet(ctx context.Context, req *GreetRequest) (*GreetResponse, error)
func (*UnimplementedGreetServiceServer) GreetEveryone ¶
func (*UnimplementedGreetServiceServer) GreetEveryone(srv GreetService_GreetEveryoneServer) error
func (*UnimplementedGreetServiceServer) GreetManyTimes ¶
func (*UnimplementedGreetServiceServer) GreetManyTimes(req *GreetManyTimesRequest, srv GreetService_GreetManyTimesServer) error
func (*UnimplementedGreetServiceServer) LongGreet ¶
func (*UnimplementedGreetServiceServer) LongGreet(srv GreetService_LongGreetServer) error
Click to show internal directories.
Click to hide internal directories.