type Client …
type ClientOpts …
func WithOnClose(onClose func()) ClientOpts { … }
func WithUnaryClientInterceptor(i UnaryClientInterceptor) ClientOpts { … }
func WithChainUnaryClientInterceptor(interceptors ...UnaryClientInterceptor) ClientOpts { … }
func chainUnaryInterceptors(interceptors []UnaryClientInterceptor, final Invoker, info *UnaryClientInfo) Invoker { … }
func NewClient(conn net.Conn, opts ...ClientOpts) *Client { … }
func (c *Client) send(sid uint32, mt messageType, flags uint8, b []byte) error { … }
func (c *Client) Call(ctx context.Context, service, method string, req, resp interface{ … }
type StreamDesc …
type ClientStream …
type clientStream …
func (cs *clientStream) CloseSend() error { … }
func (cs *clientStream) SendMsg(m interface{ … }
func (cs *clientStream) RecvMsg(m interface{ … }
func (c *Client) Close() error { … }
func (c *Client) UserOnCloseWait(ctx context.Context) error { … }
func (c *Client) run() { … }
func (c *Client) receiveLoop() error { … }
func (c *Client) createStream(flags uint8, b []byte) (*stream, error) { … }
func (c *Client) deleteStream(s *stream) { … }
func (c *Client) getStream(sid streamID) *stream { … }
func (c *Client) cleanupStreams(err error) { … }
func filterCloseErr(err error) error { … }
func (c *Client) NewStream(ctx context.Context, desc *StreamDesc, service, method string, req interface{ … }
func (c *Client) dispatch(ctx context.Context, req *Request, resp *Response) error { … }