Documentation
¶
Index ¶
- func DRPCRegisterExampleService(mux drpc.Mux, impl DRPCExampleServiceServer) error
- func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
- type DRPCExampleServiceClient
- type DRPCExampleServiceDescription
- type DRPCExampleServiceServer
- type DRPCExampleServiceUnimplementedServer
- type DRPCExampleService_DoSomethingStream
- type DoSomethingReq
- func (*DoSomethingReq) Descriptor() ([]byte, []int)
- func (m *DoSomethingReq) GetMsg() string
- func (*DoSomethingReq) ProtoMessage()
- func (m *DoSomethingReq) Reset()
- func (m *DoSomethingReq) String() string
- func (m *DoSomethingReq) XXX_DiscardUnknown()
- func (m *DoSomethingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoSomethingReq) XXX_Merge(src proto.Message)
- func (m *DoSomethingReq) XXX_Size() int
- func (m *DoSomethingReq) XXX_Unmarshal(b []byte) error
- type DoSomethingResp
- func (*DoSomethingResp) Descriptor() ([]byte, []int)
- func (m *DoSomethingResp) GetMsg() string
- func (*DoSomethingResp) ProtoMessage()
- func (m *DoSomethingResp) Reset()
- func (m *DoSomethingResp) String() string
- func (m *DoSomethingResp) XXX_DiscardUnknown()
- func (m *DoSomethingResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoSomethingResp) XXX_Merge(src proto.Message)
- func (m *DoSomethingResp) XXX_Size() int
- func (m *DoSomethingResp) XXX_Unmarshal(b []byte) error
- type ExampleServiceClient
- type ExampleServiceServer
- type UnimplementedExampleServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DRPCRegisterExampleService ¶
func DRPCRegisterExampleService(mux drpc.Mux, impl DRPCExampleServiceServer) error
func RegisterExampleServiceServer ¶
func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
Types ¶
type DRPCExampleServiceClient ¶
type DRPCExampleServiceClient interface {
DRPCConn() drpc.Conn
DoSomething(ctx context.Context, in *DoSomethingReq) (*DoSomethingResp, error)
}
func NewDRPCExampleServiceClient ¶
func NewDRPCExampleServiceClient(cc drpc.Conn) DRPCExampleServiceClient
type DRPCExampleServiceDescription ¶
type DRPCExampleServiceDescription struct{}
func (DRPCExampleServiceDescription) NumMethods ¶
func (DRPCExampleServiceDescription) NumMethods() int
type DRPCExampleServiceServer ¶
type DRPCExampleServiceServer interface {
DoSomething(context.Context, *DoSomethingReq) (*DoSomethingResp, error)
}
type DRPCExampleServiceUnimplementedServer ¶
type DRPCExampleServiceUnimplementedServer struct{}
func (*DRPCExampleServiceUnimplementedServer) DoSomething ¶
func (s *DRPCExampleServiceUnimplementedServer) DoSomething(context.Context, *DoSomethingReq) (*DoSomethingResp, error)
type DRPCExampleService_DoSomethingStream ¶
type DRPCExampleService_DoSomethingStream interface {
drpc.Stream
SendAndClose(*DoSomethingResp) error
}
type DoSomethingReq ¶
type DoSomethingReq struct {
// Msg is the message to echo.
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DoSomethingReq is a do something request.
func (*DoSomethingReq) Descriptor ¶
func (*DoSomethingReq) Descriptor() ([]byte, []int)
func (*DoSomethingReq) GetMsg ¶
func (m *DoSomethingReq) GetMsg() string
func (*DoSomethingReq) ProtoMessage ¶
func (*DoSomethingReq) ProtoMessage()
func (*DoSomethingReq) Reset ¶
func (m *DoSomethingReq) Reset()
func (*DoSomethingReq) String ¶
func (m *DoSomethingReq) String() string
func (*DoSomethingReq) XXX_DiscardUnknown ¶
func (m *DoSomethingReq) XXX_DiscardUnknown()
func (*DoSomethingReq) XXX_Marshal ¶
func (m *DoSomethingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoSomethingReq) XXX_Merge ¶
func (m *DoSomethingReq) XXX_Merge(src proto.Message)
func (*DoSomethingReq) XXX_Size ¶
func (m *DoSomethingReq) XXX_Size() int
func (*DoSomethingReq) XXX_Unmarshal ¶
func (m *DoSomethingReq) XXX_Unmarshal(b []byte) error
type DoSomethingResp ¶
type DoSomethingResp struct {
// Msg is the echoed message.
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DoSomethingResp is a do something response.
func (*DoSomethingResp) Descriptor ¶
func (*DoSomethingResp) Descriptor() ([]byte, []int)
func (*DoSomethingResp) GetMsg ¶
func (m *DoSomethingResp) GetMsg() string
func (*DoSomethingResp) ProtoMessage ¶
func (*DoSomethingResp) ProtoMessage()
func (*DoSomethingResp) Reset ¶
func (m *DoSomethingResp) Reset()
func (*DoSomethingResp) String ¶
func (m *DoSomethingResp) String() string
func (*DoSomethingResp) XXX_DiscardUnknown ¶
func (m *DoSomethingResp) XXX_DiscardUnknown()
func (*DoSomethingResp) XXX_Marshal ¶
func (m *DoSomethingResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoSomethingResp) XXX_Merge ¶
func (m *DoSomethingResp) XXX_Merge(src proto.Message)
func (*DoSomethingResp) XXX_Size ¶
func (m *DoSomethingResp) XXX_Size() int
func (*DoSomethingResp) XXX_Unmarshal ¶
func (m *DoSomethingResp) XXX_Unmarshal(b []byte) error
type ExampleServiceClient ¶
type ExampleServiceClient interface {
DoSomething(ctx context.Context, in *DoSomethingReq, opts ...grpc.CallOption) (*DoSomethingResp, error)
}
ExampleServiceClient is the client API for ExampleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExampleServiceClient ¶
func NewExampleServiceClient(cc grpc.ClientConnInterface) ExampleServiceClient
type ExampleServiceServer ¶
type ExampleServiceServer interface {
DoSomething(context.Context, *DoSomethingReq) (*DoSomethingResp, error)
}
ExampleServiceServer is the server API for ExampleService service.
type UnimplementedExampleServiceServer ¶
type UnimplementedExampleServiceServer struct {
}
UnimplementedExampleServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedExampleServiceServer) DoSomething ¶
func (*UnimplementedExampleServiceServer) DoSomething(ctx context.Context, req *DoSomethingReq) (*DoSomethingResp, error)
Click to show internal directories.
Click to hide internal directories.