Documentation
¶
Index ¶
Constants ¶
View Source
const GatewayHeaderKey = "X-Arcad-Gateway"
View Source
const (
ServiceName service.Name = "tunnel-server"
)
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("key not found") ErrUnexpectedStoredValue = errors.New("unexpected stored value") )
Functions ¶
func AddGatewayHeader ¶
func HasGatewayHeader ¶
func ServiceProvider ¶
Types ¶
type ClientRegistry ¶
type ClientRegistry struct {
// contains filtered or unexported fields
}
func NewClientRegistry ¶
func NewClientRegistry() *ClientRegistry
func (*ClientRegistry) Add ¶
func (r *ClientRegistry) Add(clientID, remoteAddr string, rc *tunnel.RemoteClient)
func (*ClientRegistry) Get ¶
func (r *ClientRegistry) Get(clientID string) *tunnel.RemoteClient
func (*ClientRegistry) RemoveByRemoteAddr ¶
func (r *ClientRegistry) RemoveByRemoteAddr(remoteAddr string)
type EtagCachingTransport ¶
type EtagCachingTransport struct {
// contains filtered or unexported fields
}
func NewETagCachingTransport ¶
func NewETagCachingTransport(upstream http.RoundTripper, maxSize int64, ttl, refreshTimeout time.Duration) *EtagCachingTransport
type MemoryCache ¶
type MemoryCache struct {
// contains filtered or unexported fields
}
func NewMemoryCache ¶
func NewMemoryCache() *MemoryCache
func (*MemoryCache) Has ¶
func (c *MemoryCache) Has(key string) bool
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Clients ¶
func (s *Service) Clients() *ClientRegistry
Click to show internal directories.
Click to hide internal directories.