Documentation ¶
Index ¶
- type Gateway
- func (g *Gateway) AuthHandle(name, password string) (*svc.User, error)
- func (g *Gateway) CloseHandle(id uint64)
- func (g *Gateway) RegionsHandle(id uint64, regions map[string]string) error
- func (g *Gateway) RegisterHandle(conn quic.Connection) (uint64, <-chan error, error)
- func (g *Gateway) SessionHandle(user *svc.User, destination svc.Destination, region svc.Region, ...) error
- type Proxy
- type ProxyConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶
func NewGateway(userStore svc.UserStore, bandwidthStore svc.BandwidthStore, sessionStore svc.SessionStore) *Gateway
func (*Gateway) CloseHandle ¶
func (*Gateway) RegionsHandle ¶
func (*Gateway) RegisterHandle ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func NewProxyServer ¶
func NewProxyServer( config ProxyConfig, authHandler svc.GatewayAuthHandleFunc, sessionHandler svc.GatewaySessionHandleFunc, ) (*Proxy, error)
func (*Proxy) ListenUser ¶
type ProxyConfig ¶
Click to show internal directories.
Click to hide internal directories.