Documentation ¶
Index ¶
- Variables
- func NewChainGroup(chains ...chain.Chainer) *chainGroup
- func NewRoute(opts ...RouteOption) *chainRoute
- type Chain
- type ChainOption
- type ChainOptions
- type RouteOption
- type RouteOptions
- type Router
- type Transport
- func (tr *Transport) Bind(ctx context.Context, conn net.Conn, network, address string, ...) (net.Listener, error)
- func (tr *Transport) Connect(ctx context.Context, conn net.Conn, network, address string) (net.Conn, error)
- func (tr *Transport) Copy() chain.Transporter
- func (tr *Transport) Dial(ctx context.Context, addr string) (net.Conn, error)
- func (tr *Transport) Handshake(ctx context.Context, conn net.Conn) (net.Conn, error)
- func (tr *Transport) Multiplex() bool
- func (tr *Transport) Options() *chain.TransportOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultRoute chain.Route = &defaultRoute{}
)
View Source
var (
ErrEmptyRoute = errors.New("empty route")
)
Functions ¶
func NewChainGroup ¶
func NewRoute ¶
func NewRoute(opts ...RouteOption) *chainRoute
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func NewChain ¶
func NewChain(name string, opts ...ChainOption) *Chain
type ChainOption ¶
type ChainOption func(*ChainOptions)
func LoggerChainOption ¶
func LoggerChainOption(logger logger.Logger) ChainOption
func MetadataChainOption ¶
func MetadataChainOption(md metadata.Metadata) ChainOption
type RouteOption ¶
type RouteOption func(*RouteOptions)
func ChainRouteOption ¶
func ChainRouteOption(c chain.Chainer) RouteOption
type RouteOptions ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(opts ...chain.RouterOption) *Router
func (*Router) Options ¶
func (r *Router) Options() *chain.RouterOptions
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func (*Transport) Copy ¶
func (tr *Transport) Copy() chain.Transporter
func (*Transport) Options ¶
func (tr *Transport) Options() *chain.TransportOptions
Click to show internal directories.
Click to hide internal directories.