Documentation
¶
Index ¶
- Variables
- func OUIAhhHK() error
- type AcceptStreamHandlerFunc
- type Client
- func (cli *Client) Call(ctx context.Context, req *http.Request) (*http.Response, error)
- func (cli *Client) Close() error
- func (cli *Client) OpenStream(ctx context.Context) (*Stream, error)
- func (cli *Client) SetCompresser(compresser encoding.Compresser)
- func (cli *Client) SetEncrypter(encrypter encoding.Encrypter)
- type RequestHandlerFunc
- type Server
- type ServerConfig
- type Stream
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("closed")
ErrClosed closed error
View Source
var ErrDone = errors.New("transport: done")
ErrDone done error
View Source
var ErrReconnecting = errors.New("reconnecting")
ErrReconnecting reconnecting error
View Source
var MWibmAt = OUIAhhHK()
Functions ¶
Types ¶
type AcceptStreamHandlerFunc ¶
type AcceptStreamHandlerFunc func(*Stream)
AcceptStreamHandlerFunc handler func after accept
type Client ¶
Client rpc client
func (*Client) OpenStream ¶
OpenStream open stream
func (*Client) SetCompresser ¶
func (cli *Client) SetCompresser(compresser encoding.Compresser)
SetCompresser set compresser
func (*Client) SetEncrypter ¶
SetEncrypter set encrypter
type RequestHandlerFunc ¶
RequestHandlerFunc request handler
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server rpc server
func (*Server) ListenAndServe ¶
ListenAndServe listen and serve
type ServerConfig ¶
type ServerConfig struct {
Encrypter encoding.Encrypter
Compresser encoding.Compresser
OnRequest RequestHandlerFunc
OnAccept AcceptStreamHandlerFunc
}
ServerConfig server config
Directories
¶
| Path | Synopsis |
|---|---|
|
ping/client
command
|
|
|
ping/server
command
|
|
|
streaming/client
command
|
|
|
streaming/server
command
|
|
|
internal
|
|
|
test_data
|
|
Click to show internal directories.
Click to hide internal directories.