Documentation ¶
Index ¶
- func NewTestEndpoints() []*api.Endpoint
- func RegisterTestHandler(s server.Server, hdlr TestHandler, opts ...server.HandlerOption) error
- func RegisterTestServer(s *grpc.Server, srv TestServer)
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetName() string
- func (m *Request) GetUuid() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetMsg() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type TestClient
- type TestHandler
- type TestServer
- type TestService
- type UnimplementedTestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTestHandler ¶
func RegisterTestHandler(s server.Server, hdlr TestHandler, opts ...server.HandlerOption) error
func RegisterTestServer ¶
func RegisterTestServer(s *grpc.Server, srv TestServer)
Types ¶
type Request ¶
type Request struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) XXX_Marshal ¶
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) XXX_Marshal ¶
type TestClient ¶
type TestClient interface { Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) CallPcre(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) CallPcreInvalid(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
TestClient is the client API for Test service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTestClient ¶
func NewTestClient(cc *grpc.ClientConn) TestClient
type TestHandler ¶
type TestServer ¶
type TestServer interface { Call(context.Context, *Request) (*Response, error) CallPcre(context.Context, *Request) (*Response, error) CallPcreInvalid(context.Context, *Request) (*Response, error) }
TestServer is the server API for Test service.
type TestService ¶
type TestService interface { Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) CallPcre(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) CallPcreInvalid(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) }
func NewTestService ¶
func NewTestService(name string, c client.Client) TestService
Click to show internal directories.
Click to hide internal directories.