proxy

package
v0.0.0-...-0edc9b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedConfig

type CompletedConfig struct {
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Options   *options.Options
	KCPConfig *kcpproxy.Config
}

func NewConfig

func NewConfig(o *options.Options) (*Config, error)

func (*Config) Complete

func (c *Config) Complete() (CompletedConfig, error)

type Server

type Server struct {
	KCPProxyServer  *kcpproxy.Server
	CompletedConfig CompletedConfig
}

func NewServer

func NewServer(ctx context.Context, c CompletedConfig) (*Server, error)

func (*Server) PrepareRun

func (s *Server) PrepareRun(ctx context.Context) (preparedServer, error)

PrepareRun is basically a no-op, but we contort a little to get the Run func out of the KCP proxy delegate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL