Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBuildInfo ¶
func RegisterBuildInfo(buildType, buildTime, version string)
Types ¶
type Config ¶
type Config struct { ReadyServer *ReadyServer QuickTunnelHostname string Orchestrator orchestrator ShutdownTimeout time.Duration }
type HistogramConfig ¶
type ReadyServer ¶
type ReadyServer struct {
// contains filtered or unexported fields
}
ReadyServer serves HTTP 200 if the tunnel can serve traffic. Intended for k8s readiness checks.
func NewReadyServer ¶
func NewReadyServer(log *zerolog.Logger, clientID uuid.UUID) *ReadyServer
NewReadyServer initializes a ReadyServer and starts listening for dis/connection events.
func (*ReadyServer) OnTunnelEvent ¶
func (rs *ReadyServer) OnTunnelEvent(c conn.Event)
func (*ReadyServer) ServeHTTP ¶
func (rs *ReadyServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP responds with HTTP 200 if the tunnel is connected to the edge.
Click to show internal directories.
Click to hide internal directories.