Documentation ¶
Index ¶
- func NewAgentDialer(dialAgentFunc AgentDialFunc) gost.Dialer
- func NewClientJwtAuthenticator(tokenVerifier jwtutil.TokenVerifier) gost.Authenticator
- func NewClientNoAuthAuthenticator() gost.Authenticator
- func RunLoadBalancerServer(conf *config.LoadBalancerCmd)
- func RunProxyServer(conf *config.ProxyCmd)
- func Tracer(connTrack *ConnTrack) ...
- type AgentDialFunc
- type AgentDialer
- type AgentID
- type ClientJwtAuthenticator
- type ClientNoAuthAuthenticator
- type ConnTrack
- type HttpProxyForwardAuth
- type HttpProxyServer
- type LoadBalancerDialer
- type QuicServer
- type SyncedMap
- func (m *SyncedMap[K, V]) CompareAndDelete(key K, old V) bool
- func (m *SyncedMap[K, V]) CompareAndSwap(key K, old V, new V) bool
- func (m *SyncedMap[K, V]) Delete(key K)
- func (m *SyncedMap[K, V]) Entries() ([]K, []V)
- func (m *SyncedMap[K, V]) Get(key K) (V, bool)
- func (m *SyncedMap[K, V]) GetAndDelete(key K) (V, bool)
- func (m *SyncedMap[K, V]) Keys() []K
- func (m *SyncedMap[K, V]) Set(key K, value V)
- func (m *SyncedMap[K, V]) Swap(key K, value V) (V, bool)
- func (m *SyncedMap[K, V]) Values() []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgentDialer ¶
func NewAgentDialer(dialAgentFunc AgentDialFunc) gost.Dialer
func NewClientJwtAuthenticator ¶
func NewClientJwtAuthenticator(tokenVerifier jwtutil.TokenVerifier) gost.Authenticator
func NewClientNoAuthAuthenticator ¶
func NewClientNoAuthAuthenticator() gost.Authenticator
func RunLoadBalancerServer ¶
func RunLoadBalancerServer(conf *config.LoadBalancerCmd)
func RunProxyServer ¶
func Tracer ¶
func Tracer(connTrack *ConnTrack) func(_ context.Context, perspective logging.Perspective, connID quic.ConnectionID) *logging.ConnectionTracer
Types ¶
type AgentDialFunc ¶
type AgentDialer ¶
type AgentDialer struct {
// contains filtered or unexported fields
}
type ClientJwtAuthenticator ¶
type ClientJwtAuthenticator struct {
// contains filtered or unexported fields
}
func (*ClientJwtAuthenticator) Authenticate ¶
func (a *ClientJwtAuthenticator) Authenticate(ctx context.Context, agentID, password string, opts ...gost.AuthOption) (id string, ok bool)
type ClientNoAuthAuthenticator ¶
type ClientNoAuthAuthenticator struct { }
func (*ClientNoAuthAuthenticator) Authenticate ¶
func (a *ClientNoAuthAuthenticator) Authenticate(ctx context.Context, agentID, password string, opts ...gost.AuthOption) (id string, ok bool)
type ConnTrack ¶
type ConnTrack struct {
// contains filtered or unexported fields
}
func (*ConnTrack) OnConnClose ¶
func (*ConnTrack) OnConnStarted ¶
type HttpProxyForwardAuth ¶
type HttpProxyForwardAuth struct { }
func NewHttpProxyForwardAuth ¶
func NewHttpProxyForwardAuth() *HttpProxyForwardAuth
type HttpProxyServer ¶
type HttpProxyServer struct {
// contains filtered or unexported fields
}
func NewHttpProxyServer ¶
func NewHttpProxyServer(listenAddr string, tlsServerConfig certconfig.TLSServerConfig, dialAgentFunc AgentDialFunc, clientAuthenticator gost.Authenticator, bypass *util.Whitelist, forwardAuth bool) (*HttpProxyServer, error)
func (*HttpProxyServer) ListenAndServe ¶
func (p *HttpProxyServer) ListenAndServe() error
type LoadBalancerDialer ¶
type LoadBalancerDialer struct {
// contains filtered or unexported fields
}
func NewLoadBalancerDialer ¶
func NewLoadBalancerDialer(storeClient store.Client, tlsConfigFunc tlsclient.TLSClientConfigFunc) *LoadBalancerDialer
type QuicServer ¶
type QuicServer struct {
// contains filtered or unexported fields
}
func NewQuicServer ¶
func (*QuicServer) Close ¶
func (qs *QuicServer) Close()
type SyncedMap ¶
type SyncedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewSyncedMap ¶
func NewSyncedMap[K comparable, V any]() *SyncedMap[K, V]
func (*SyncedMap[K, V]) CompareAndDelete ¶
func (*SyncedMap[K, V]) CompareAndSwap ¶
func (*SyncedMap[K, V]) GetAndDelete ¶
Click to show internal directories.
Click to hide internal directories.