Documentation ¶
Index ¶
- func NewProxy(config *conf.GlobalConfig) (common.Runnable, error)
- func ProxyConn(ctx context.Context, a, b io.ReadWriter, bufferSize int)
- func ProxyPacket(ctx context.Context, a, b protocol.PacketReadWriter)
- func ProxyPacketWithRouter(ctx context.Context, from protocol.PacketReadWriter, ...)
- func RegisterAPI(t conf.RunType, r APIRunner)
- func RegisterProxy(t conf.RunType, b Buildable)
- func RunAPIService(t conf.RunType, ctx context.Context, config *conf.GlobalConfig, ...) error
- type APIRunner
- type Buildable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProxyConn ¶ added in v0.0.15
func ProxyConn(ctx context.Context, a, b io.ReadWriter, bufferSize int)
func ProxyPacket ¶ added in v0.0.15
func ProxyPacket(ctx context.Context, a, b protocol.PacketReadWriter)
func ProxyPacketWithRouter ¶ added in v0.0.17
func ProxyPacketWithRouter(ctx context.Context, from protocol.PacketReadWriter, table map[router.Policy]protocol.PacketReadWriter, router router.Router)
func RegisterAPI ¶ added in v0.4.4
func RegisterProxy ¶ added in v0.0.15
func RunAPIService ¶ added in v0.4.4
func RunAPIService(t conf.RunType, ctx context.Context, config *conf.GlobalConfig, auth stat.Authenticator) error
Types ¶
type APIRunner ¶ added in v0.4.4
type APIRunner func(context.Context, *conf.GlobalConfig, stat.Authenticator) error
Click to show internal directories.
Click to hide internal directories.