pb

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCallerTestAPIServer deprecated

func RegisterCallerTestAPIServer(s *qrpc.Server, srv CallerTestAPIServer)

Deprecated: Do not use.

func RegisterHandlerTestAPIServer deprecated

func RegisterHandlerTestAPIServer(s *qrpc.Server, srv HandlerTestAPIServer)

Deprecated: Do not use.

Types

type CallerTestAPIClient

type CallerTestAPIClient interface {
	// BidirectionalMethod tests bidirectional method.
	// Deprecated: Do not use.
	BidirectionalMethod(ctx context.Context, in *Request) (string, error)
	// ForwardMethod tests forward method.
	ForwardMethod(ctx context.Context, in *Request) (string, error)
}

CallerTestAPIClient is the caller client API for TestAPI service. Deprecated: Do not use

func NewCallerTestAPIClient deprecated

func NewCallerTestAPIClient(cc *qrpc.ClientConn) CallerTestAPIClient

Deprecated: Do not use.

type CallerTestAPIServer

type CallerTestAPIServer interface {
	// BidirectionalMethod tests bidirectional method.
	// Deprecated: Do not use.
	BidirectionalMethod(ctx context.Context, reqID string, out *Response) error
	// BackwardMethod tests backward method.
	BackwardMethod(ctx context.Context, reqID string, out *Response) error
}

CallerTestAPIServer is the caller server API for TestAPI service. It should be used to handle responses from backward methods and bidirectional methods. Deprecated: Do not use.

type HandlerTestAPIClient

type HandlerTestAPIClient interface {
	// BidirectionalMethod tests bidirectional method.
	// Deprecated: Do not use.
	BidirectionalMethod(ctx context.Context, reqID string, out *Response) error
	// BackwardMethod tests backward method.
	BackwardMethod(ctx context.Context, out *Response) (string, error)
}

HandlerTestAPIClient is the handler client API for TestAPI service. It should be used to send response to the caller. Deprecated: Do not use.

func NewHandlerTestAPIClient deprecated

func NewHandlerTestAPIClient(cc *qrpc.ClientConn) HandlerTestAPIClient

Deprecated: Do not use.

type HandlerTestAPIServer

type HandlerTestAPIServer interface {
	// BidirectionalMethod tests bidirectional method.
	// Deprecated: Do not use.
	BidirectionalMethod(ctx context.Context, reqID string, in *Request) error
	// ForwardMethod tests forward method.
	ForwardMethod(ctx context.Context, reqID string, in *Request) error
}

HandlerTestAPIServer is the handler server API for TestAPI service. Deprecated: Do not use.

type Request

type Request struct {
	Uid                  string   `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request - request message for TestAPI service.

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetUid

func (m *Request) GetUid() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type Response

type Response struct {
	Uid                  string   `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response - response message for TestAPI service.

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetUid

func (m *Response) GetUid() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL