add network for bypass
This commit is contained in:
@ -4,6 +4,18 @@ import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type Chainer interface {
|
||||
Route(ctx context.Context, network, address string) Route
|
||||
type RouteOptions struct {
|
||||
Host string
|
||||
}
|
||||
|
||||
type RouteOption func(opts *RouteOptions)
|
||||
|
||||
func WithHostRouteOption(host string) RouteOption {
|
||||
return func(opts *RouteOptions) {
|
||||
opts.Host = host
|
||||
}
|
||||
}
|
||||
|
||||
type Chainer interface {
|
||||
Route(ctx context.Context, network, address string, opts ...RouteOption) Route
|
||||
}
|
||||
|
Reference in New Issue
Block a user