Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient( addr string, opts ...ClientOption, ) *Client
type ClientOption ¶
type ClientOption func(*Client)
func WithClientCodec ¶
func WithClientCodec(c command.Encoding) ClientOption
func WithClientContextFunc ¶
func WithClientContextFunc(fn ContextFunc) ClientOption
func WithClientRequestFunc ¶
func WithClientRequestFunc(fn ClientRequestFunc) ClientOption
func WithClientResponseFunc ¶
func WithClientResponseFunc(fn ClientResponseFunc) ClientOption
func WithClientTransport ¶
func WithClientTransport(c Doer) ClientOption
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( mutator stream.CommandSinker, opts ...ServerOption, ) *Server
type ServerErrorHandler ¶
type ServerErrorHandler func(err error)
type ServerOption ¶
type ServerOption func(*Server)
func WithServerCodec ¶
func WithServerCodec(c command.Encoding) ServerOption
func WithServerContextFunc ¶
func WithServerContextFunc(fn ContextFunc) ServerOption
func WithServerErrorHandler ¶
func WithServerErrorHandler(fn ServerErrorHandler) ServerOption
func WithServerRequestFunc ¶
func WithServerRequestFunc(fn ServerRequestFunc) ServerOption
func WithServerResponseFunc ¶
func WithServerResponseFunc(fn ServerResponseFunc) ServerOption
type ServerResponseFunc ¶
type ServerResponseFunc func(w http.ResponseWriter, r *command.Reply)
Click to show internal directories.
Click to hide internal directories.