Documentation
¶
Index ¶
- Variables
- type BlockPeerRequest
- type BlockPeerResponse
- type BlockedPeer
- func (*BlockedPeer) Descriptor() ([]byte, []int)deprecated
- func (x *BlockedPeer) GetBlockedAtUnix() int64
- func (x *BlockedPeer) GetPeer() string
- func (*BlockedPeer) ProtoMessage()
- func (x *BlockedPeer) ProtoReflect() protoreflect.Message
- func (x *BlockedPeer) Reset()
- func (x *BlockedPeer) String() string
- type GoAway
- type Hello
- func (*Hello) Descriptor() ([]byte, []int)deprecated
- func (x *Hello) GetPeerVersion() string
- func (x *Hello) GetProtocolVersion() uint32
- func (x *Hello) GetTunnelType() TunnelType
- func (*Hello) ProtoMessage()
- func (x *Hello) ProtoReflect() protoreflect.Message
- func (x *Hello) Reset()
- func (x *Hello) String() string
- type InfoRequest
- type InfoResponse
- func (*InfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InfoResponse) GetAdvertiseAddr() string
- func (x *InfoResponse) GetBlocked() int64
- func (x *InfoResponse) GetCommit() string
- func (x *InfoResponse) GetExternalUrl() string
- func (x *InfoResponse) GetMetricsAddr() string
- func (x *InfoResponse) GetProxyAddr() string
- func (x *InfoResponse) GetProxyDomain() string
- func (x *InfoResponse) GetProxyRouting() string
- func (x *InfoResponse) GetRouteHeader() string
- func (x *InfoResponse) GetTokenTtlSeconds() int64
- func (x *InfoResponse) GetTunnels() int64
- func (x *InfoResponse) GetVersion() string
- func (*InfoResponse) ProtoMessage()
- func (x *InfoResponse) ProtoReflect() protoreflect.Message
- func (x *InfoResponse) Reset()
- func (x *InfoResponse) String() string
- type ListBlockedRequest
- type ListBlockedResponse
- func (*ListBlockedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBlockedResponse) GetPeers() []*BlockedPeer
- func (*ListBlockedResponse) ProtoMessage()
- func (x *ListBlockedResponse) ProtoReflect() protoreflect.Message
- func (x *ListBlockedResponse) Reset()
- func (x *ListBlockedResponse) String() string
- type ListTunnelsRequest
- type ListTunnelsResponse
- func (*ListTunnelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTunnelsResponse) GetTunnels() []*TunnelInfo
- func (*ListTunnelsResponse) ProtoMessage()
- func (x *ListTunnelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListTunnelsResponse) Reset()
- func (x *ListTunnelsResponse) String() string
- type RequestEvent
- func (*RequestEvent) Descriptor() ([]byte, []int)deprecated
- func (x *RequestEvent) GetAtUnixMillis() int64
- func (x *RequestEvent) GetDurationUs() int64
- func (x *RequestEvent) GetHost() string
- func (x *RequestEvent) GetMethod() string
- func (x *RequestEvent) GetPath() string
- func (x *RequestEvent) GetPeer() string
- func (x *RequestEvent) GetProto() string
- func (x *RequestEvent) GetQuery() string
- func (x *RequestEvent) GetRemoteAddr() string
- func (x *RequestEvent) GetRequestBytes() int64
- func (x *RequestEvent) GetResponseBytes() int64
- func (x *RequestEvent) GetStatus() int32
- func (x *RequestEvent) GetUserAgent() string
- func (*RequestEvent) ProtoMessage()
- func (x *RequestEvent) ProtoReflect() protoreflect.Message
- func (x *RequestEvent) Reset()
- func (x *RequestEvent) String() string
- type StopTunnelRequest
- func (*StopTunnelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopTunnelRequest) GetPeer() string
- func (x *StopTunnelRequest) GetReason() string
- func (*StopTunnelRequest) ProtoMessage()
- func (x *StopTunnelRequest) ProtoReflect() protoreflect.Message
- func (x *StopTunnelRequest) Reset()
- func (x *StopTunnelRequest) String() string
- type StopTunnelResponse
- func (*StopTunnelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StopTunnelResponse) GetStopped() bool
- func (*StopTunnelResponse) ProtoMessage()
- func (x *StopTunnelResponse) ProtoReflect() protoreflect.Message
- func (x *StopTunnelResponse) Reset()
- func (x *StopTunnelResponse) String() string
- type TunnelEvent
- func (*TunnelEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TunnelEvent) GetInfo() *TunnelInfo
- func (x *TunnelEvent) GetKind() TunnelEvent_Kind
- func (x *TunnelEvent) GetReason() string
- func (*TunnelEvent) ProtoMessage()
- func (x *TunnelEvent) ProtoReflect() protoreflect.Message
- func (x *TunnelEvent) Reset()
- func (x *TunnelEvent) String() string
- type TunnelEvent_Kind
- func (TunnelEvent_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x TunnelEvent_Kind) Enum() *TunnelEvent_Kind
- func (TunnelEvent_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x TunnelEvent_Kind) Number() protoreflect.EnumNumber
- func (x TunnelEvent_Kind) String() string
- func (TunnelEvent_Kind) Type() protoreflect.EnumType
- type TunnelFrame
- func (*TunnelFrame) Descriptor() ([]byte, []int)deprecated
- func (x *TunnelFrame) GetData() []byte
- func (x *TunnelFrame) GetGoAway() *GoAway
- func (x *TunnelFrame) GetHello() *Hello
- func (x *TunnelFrame) GetKind() isTunnelFrame_Kind
- func (x *TunnelFrame) GetWelcome() *Welcome
- func (*TunnelFrame) ProtoMessage()
- func (x *TunnelFrame) ProtoReflect() protoreflect.Message
- func (x *TunnelFrame) Reset()
- func (x *TunnelFrame) String() string
- type TunnelFrame_Data
- type TunnelFrame_GoAway
- type TunnelFrame_Hello
- type TunnelFrame_Welcome
- type TunnelInfo
- func (*TunnelInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TunnelInfo) GetAttachedAtUnix() int64
- func (x *TunnelInfo) GetPeer() string
- func (x *TunnelInfo) GetPeerVersion() string
- func (x *TunnelInfo) GetTunnelType() string
- func (*TunnelInfo) ProtoMessage()
- func (x *TunnelInfo) ProtoReflect() protoreflect.Message
- func (x *TunnelInfo) Reset()
- func (x *TunnelInfo) String() string
- type TunnelType
- type UnblockPeerRequest
- func (*UnblockPeerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnblockPeerRequest) GetPeer() string
- func (*UnblockPeerRequest) ProtoMessage()
- func (x *UnblockPeerRequest) ProtoReflect() protoreflect.Message
- func (x *UnblockPeerRequest) Reset()
- func (x *UnblockPeerRequest) String() string
- type UnblockPeerResponse
- type WatchRequestsRequest
- func (*WatchRequestsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequestsRequest) GetPeer() string
- func (*WatchRequestsRequest) ProtoMessage()
- func (x *WatchRequestsRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequestsRequest) Reset()
- func (x *WatchRequestsRequest) String() string
- type WatchTunnelsRequest
- type Welcome
Constants ¶
This section is empty.
Variables ¶
var ( TunnelEvent_Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "KIND_ATTACHED", 2: "KIND_DETACHED", } TunnelEvent_Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "KIND_ATTACHED": 1, "KIND_DETACHED": 2, } )
Enum value maps for TunnelEvent_Kind.
var ( TunnelType_name = map[int32]string{ 0: "TUNNEL_TYPE_UNSPECIFIED", 1: "TUNNEL_TYPE_HTTP", 2: "TUNNEL_TYPE_HTTPS", 3: "TUNNEL_TYPE_TCP", 4: "TUNNEL_TYPE_TLS", } TunnelType_value = map[string]int32{ "TUNNEL_TYPE_UNSPECIFIED": 0, "TUNNEL_TYPE_HTTP": 1, "TUNNEL_TYPE_HTTPS": 2, "TUNNEL_TYPE_TCP": 3, "TUNNEL_TYPE_TLS": 4, } )
Enum value maps for TunnelType.
var File_v1_admin_proto protoreflect.FileDescriptor
var File_v1_tunnel_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BlockPeerRequest ¶
type BlockPeerRequest struct {
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
// contains filtered or unexported fields
}
func (*BlockPeerRequest) Descriptor
deprecated
func (*BlockPeerRequest) Descriptor() ([]byte, []int)
Deprecated: Use BlockPeerRequest.ProtoReflect.Descriptor instead.
func (*BlockPeerRequest) GetPeer ¶
func (x *BlockPeerRequest) GetPeer() string
func (*BlockPeerRequest) ProtoMessage ¶
func (*BlockPeerRequest) ProtoMessage()
func (*BlockPeerRequest) ProtoReflect ¶
func (x *BlockPeerRequest) ProtoReflect() protoreflect.Message
func (*BlockPeerRequest) Reset ¶
func (x *BlockPeerRequest) Reset()
func (*BlockPeerRequest) String ¶
func (x *BlockPeerRequest) String() string
type BlockPeerResponse ¶
type BlockPeerResponse struct {
Stopped bool `protobuf:"varint,1,opt,name=stopped,proto3" json:"stopped,omitempty"` // whether a live tunnel was also closed
// contains filtered or unexported fields
}
func (*BlockPeerResponse) Descriptor
deprecated
func (*BlockPeerResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlockPeerResponse.ProtoReflect.Descriptor instead.
func (*BlockPeerResponse) GetStopped ¶
func (x *BlockPeerResponse) GetStopped() bool
func (*BlockPeerResponse) ProtoMessage ¶
func (*BlockPeerResponse) ProtoMessage()
func (*BlockPeerResponse) ProtoReflect ¶
func (x *BlockPeerResponse) ProtoReflect() protoreflect.Message
func (*BlockPeerResponse) Reset ¶
func (x *BlockPeerResponse) Reset()
func (*BlockPeerResponse) String ¶
func (x *BlockPeerResponse) String() string
type BlockedPeer ¶
type BlockedPeer struct {
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
BlockedAtUnix int64 `protobuf:"varint,2,opt,name=blocked_at_unix,json=blockedAtUnix,proto3" json:"blocked_at_unix,omitempty"`
// contains filtered or unexported fields
}
func (*BlockedPeer) Descriptor
deprecated
func (*BlockedPeer) Descriptor() ([]byte, []int)
Deprecated: Use BlockedPeer.ProtoReflect.Descriptor instead.
func (*BlockedPeer) GetBlockedAtUnix ¶
func (x *BlockedPeer) GetBlockedAtUnix() int64
func (*BlockedPeer) GetPeer ¶
func (x *BlockedPeer) GetPeer() string
func (*BlockedPeer) ProtoMessage ¶
func (*BlockedPeer) ProtoMessage()
func (*BlockedPeer) ProtoReflect ¶
func (x *BlockedPeer) ProtoReflect() protoreflect.Message
func (*BlockedPeer) Reset ¶
func (x *BlockedPeer) Reset()
func (*BlockedPeer) String ¶
func (x *BlockedPeer) String() string
type GoAway ¶
type GoAway struct {
// "superseded" a newer Attach for the same peer replaced this
//
// tunnel; terminal — another instance owns the
// peer now (redialing would steal it back)
//
// "token-revoked" the peer's credential was revoked; terminal —
//
// do not redial with the same credential
//
// "shutting-down" hub is draining; redial with backoff
// "peer-stopping" deliberate stop; do not redial
//
// Applications may define further reasons; unknown reasons are
// non-terminal (the peer redials with backoff).
Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*GoAway) Descriptor
deprecated
func (*GoAway) ProtoMessage ¶
func (*GoAway) ProtoMessage()
func (*GoAway) ProtoReflect ¶
func (x *GoAway) ProtoReflect() protoreflect.Message
type Hello ¶
type Hello struct {
ProtocolVersion uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` // tunnel framing version; currently 1
PeerVersion string `protobuf:"bytes,2,opt,name=peer_version,json=peerVersion,proto3" json:"peer_version,omitempty"` // peer build version, observability only
// What travels through the tunnel. An enum rather than a string on
// purpose: the value reaches a metric label, and a peer must not be
// able to invent one.
TunnelType TunnelType `` /* 127-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Hello) Descriptor
deprecated
func (*Hello) GetPeerVersion ¶
func (*Hello) GetProtocolVersion ¶
func (*Hello) GetTunnelType ¶ added in v0.35.0
func (x *Hello) GetTunnelType() TunnelType
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) ProtoReflect ¶
func (x *Hello) ProtoReflect() protoreflect.Message
type InfoRequest ¶ added in v0.9.0
type InfoRequest struct {
// contains filtered or unexported fields
}
func (*InfoRequest) Descriptor
deprecated
added in
v0.9.0
func (*InfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.
func (*InfoRequest) ProtoMessage ¶ added in v0.9.0
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) ProtoReflect ¶ added in v0.9.0
func (x *InfoRequest) ProtoReflect() protoreflect.Message
func (*InfoRequest) Reset ¶ added in v0.9.0
func (x *InfoRequest) Reset()
func (*InfoRequest) String ¶ added in v0.9.0
func (x *InfoRequest) String() string
type InfoResponse ¶ added in v0.9.0
type InfoResponse struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
Tunnels int64 `protobuf:"varint,3,opt,name=tunnels,proto3" json:"tunnels,omitempty"` // live tunnels on this hub
Blocked int64 `protobuf:"varint,4,opt,name=blocked,proto3" json:"blocked,omitempty"` // banned peer ids
AdvertiseAddr string `protobuf:"bytes,5,opt,name=advertise_addr,json=advertiseAddr,proto3" json:"advertise_addr,omitempty"` // tunnel address stamped into tokens
ProxyAddr string `protobuf:"bytes,6,opt,name=proxy_addr,json=proxyAddr,proto3" json:"proxy_addr,omitempty"` // header-routed proxy
RouteHeader string `protobuf:"bytes,7,opt,name=route_header,json=routeHeader,proto3" json:"route_header,omitempty"` // header naming the target peer
MetricsAddr string `protobuf:"bytes,8,opt,name=metrics_addr,json=metricsAddr,proto3" json:"metrics_addr,omitempty"` // empty when metrics are off
ExternalUrl string `protobuf:"bytes,9,opt,name=external_url,json=externalUrl,proto3" json:"external_url,omitempty"` // public proxy URL, if set
TokenTtlSeconds int64 `protobuf:"varint,10,opt,name=token_ttl_seconds,json=tokenTtlSeconds,proto3" json:"token_ttl_seconds,omitempty"` // lifetime of minted tokens
// How the proxy picks the target peer: "header", "subdomain", or
// "both". Empty from a hub older than the strategy flag, which
// always meant header.
ProxyRouting string `protobuf:"bytes,11,opt,name=proxy_routing,json=proxyRouting,proto3" json:"proxy_routing,omitempty"`
// Base domain for subdomain routing (<peer>.<domain>), empty when
// subdomain routing is off.
ProxyDomain string `protobuf:"bytes,12,opt,name=proxy_domain,json=proxyDomain,proto3" json:"proxy_domain,omitempty"`
// contains filtered or unexported fields
}
func (*InfoResponse) Descriptor
deprecated
added in
v0.9.0
func (*InfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
func (*InfoResponse) GetAdvertiseAddr ¶ added in v0.9.0
func (x *InfoResponse) GetAdvertiseAddr() string
func (*InfoResponse) GetBlocked ¶ added in v0.9.0
func (x *InfoResponse) GetBlocked() int64
func (*InfoResponse) GetCommit ¶ added in v0.9.0
func (x *InfoResponse) GetCommit() string
func (*InfoResponse) GetExternalUrl ¶ added in v0.9.0
func (x *InfoResponse) GetExternalUrl() string
func (*InfoResponse) GetMetricsAddr ¶ added in v0.9.0
func (x *InfoResponse) GetMetricsAddr() string
func (*InfoResponse) GetProxyAddr ¶ added in v0.9.0
func (x *InfoResponse) GetProxyAddr() string
func (*InfoResponse) GetProxyDomain ¶ added in v0.18.0
func (x *InfoResponse) GetProxyDomain() string
func (*InfoResponse) GetProxyRouting ¶ added in v0.18.0
func (x *InfoResponse) GetProxyRouting() string
func (*InfoResponse) GetRouteHeader ¶ added in v0.9.0
func (x *InfoResponse) GetRouteHeader() string
func (*InfoResponse) GetTokenTtlSeconds ¶ added in v0.9.0
func (x *InfoResponse) GetTokenTtlSeconds() int64
func (*InfoResponse) GetTunnels ¶ added in v0.9.0
func (x *InfoResponse) GetTunnels() int64
func (*InfoResponse) GetVersion ¶ added in v0.9.0
func (x *InfoResponse) GetVersion() string
func (*InfoResponse) ProtoMessage ¶ added in v0.9.0
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) ProtoReflect ¶ added in v0.9.0
func (x *InfoResponse) ProtoReflect() protoreflect.Message
func (*InfoResponse) Reset ¶ added in v0.9.0
func (x *InfoResponse) Reset()
func (*InfoResponse) String ¶ added in v0.9.0
func (x *InfoResponse) String() string
type ListBlockedRequest ¶
type ListBlockedRequest struct {
// contains filtered or unexported fields
}
func (*ListBlockedRequest) Descriptor
deprecated
func (*ListBlockedRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBlockedRequest.ProtoReflect.Descriptor instead.
func (*ListBlockedRequest) ProtoMessage ¶
func (*ListBlockedRequest) ProtoMessage()
func (*ListBlockedRequest) ProtoReflect ¶
func (x *ListBlockedRequest) ProtoReflect() protoreflect.Message
func (*ListBlockedRequest) Reset ¶
func (x *ListBlockedRequest) Reset()
func (*ListBlockedRequest) String ¶
func (x *ListBlockedRequest) String() string
type ListBlockedResponse ¶
type ListBlockedResponse struct {
Peers []*BlockedPeer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
// contains filtered or unexported fields
}
func (*ListBlockedResponse) Descriptor
deprecated
func (*ListBlockedResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBlockedResponse.ProtoReflect.Descriptor instead.
func (*ListBlockedResponse) GetPeers ¶
func (x *ListBlockedResponse) GetPeers() []*BlockedPeer
func (*ListBlockedResponse) ProtoMessage ¶
func (*ListBlockedResponse) ProtoMessage()
func (*ListBlockedResponse) ProtoReflect ¶
func (x *ListBlockedResponse) ProtoReflect() protoreflect.Message
func (*ListBlockedResponse) Reset ¶
func (x *ListBlockedResponse) Reset()
func (*ListBlockedResponse) String ¶
func (x *ListBlockedResponse) String() string
type ListTunnelsRequest ¶
type ListTunnelsRequest struct {
// contains filtered or unexported fields
}
func (*ListTunnelsRequest) Descriptor
deprecated
func (*ListTunnelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTunnelsRequest.ProtoReflect.Descriptor instead.
func (*ListTunnelsRequest) ProtoMessage ¶
func (*ListTunnelsRequest) ProtoMessage()
func (*ListTunnelsRequest) ProtoReflect ¶
func (x *ListTunnelsRequest) ProtoReflect() protoreflect.Message
func (*ListTunnelsRequest) Reset ¶
func (x *ListTunnelsRequest) Reset()
func (*ListTunnelsRequest) String ¶
func (x *ListTunnelsRequest) String() string
type ListTunnelsResponse ¶
type ListTunnelsResponse struct {
Tunnels []*TunnelInfo `protobuf:"bytes,1,rep,name=tunnels,proto3" json:"tunnels,omitempty"`
// contains filtered or unexported fields
}
func (*ListTunnelsResponse) Descriptor
deprecated
func (*ListTunnelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTunnelsResponse.ProtoReflect.Descriptor instead.
func (*ListTunnelsResponse) GetTunnels ¶
func (x *ListTunnelsResponse) GetTunnels() []*TunnelInfo
func (*ListTunnelsResponse) ProtoMessage ¶
func (*ListTunnelsResponse) ProtoMessage()
func (*ListTunnelsResponse) ProtoReflect ¶
func (x *ListTunnelsResponse) ProtoReflect() protoreflect.Message
func (*ListTunnelsResponse) Reset ¶
func (x *ListTunnelsResponse) Reset()
func (*ListTunnelsResponse) String ¶
func (x *ListTunnelsResponse) String() string
type RequestEvent ¶ added in v0.37.0
type RequestEvent struct {
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 0 when the request never got a response
DurationUs int64 `protobuf:"varint,5,opt,name=duration_us,json=durationUs,proto3" json:"duration_us,omitempty"` // microseconds, hub side, tunnel hop included
AtUnixMillis int64 `protobuf:"varint,6,opt,name=at_unix_millis,json=atUnixMillis,proto3" json:"at_unix_millis,omitempty"`
Query string `protobuf:"bytes,7,opt,name=query,proto3" json:"query,omitempty"` // raw query string, without "?"
Host string `protobuf:"bytes,8,opt,name=host,proto3" json:"host,omitempty"` // authority the request carried
Proto string `protobuf:"bytes,9,opt,name=proto,proto3" json:"proto,omitempty"` // "HTTP/1.1", "HTTP/2.0"
RemoteAddr string `protobuf:"bytes,10,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"` // who the hub saw connecting
UserAgent string `protobuf:"bytes,11,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
RequestBytes int64 `protobuf:"varint,12,opt,name=request_bytes,json=requestBytes,proto3" json:"request_bytes,omitempty"` // declared Content-Length, -1 when unknown
ResponseBytes int64 `protobuf:"varint,13,opt,name=response_bytes,json=responseBytes,proto3" json:"response_bytes,omitempty"` // what the peer's handler wrote
// contains filtered or unexported fields
}
RequestEvent is one request the hub proxied to a peer, reported once its response completed. Metadata only: no header values beyond the few named here, and never a body.
func (*RequestEvent) Descriptor
deprecated
added in
v0.37.0
func (*RequestEvent) Descriptor() ([]byte, []int)
Deprecated: Use RequestEvent.ProtoReflect.Descriptor instead.
func (*RequestEvent) GetAtUnixMillis ¶ added in v0.37.0
func (x *RequestEvent) GetAtUnixMillis() int64
func (*RequestEvent) GetDurationUs ¶ added in v0.37.0
func (x *RequestEvent) GetDurationUs() int64
func (*RequestEvent) GetHost ¶ added in v0.39.0
func (x *RequestEvent) GetHost() string
func (*RequestEvent) GetMethod ¶ added in v0.37.0
func (x *RequestEvent) GetMethod() string
func (*RequestEvent) GetPath ¶ added in v0.37.0
func (x *RequestEvent) GetPath() string
func (*RequestEvent) GetPeer ¶ added in v0.37.0
func (x *RequestEvent) GetPeer() string
func (*RequestEvent) GetProto ¶ added in v0.39.0
func (x *RequestEvent) GetProto() string
func (*RequestEvent) GetQuery ¶ added in v0.39.0
func (x *RequestEvent) GetQuery() string
func (*RequestEvent) GetRemoteAddr ¶ added in v0.39.0
func (x *RequestEvent) GetRemoteAddr() string
func (*RequestEvent) GetRequestBytes ¶ added in v0.39.0
func (x *RequestEvent) GetRequestBytes() int64
func (*RequestEvent) GetResponseBytes ¶ added in v0.39.0
func (x *RequestEvent) GetResponseBytes() int64
func (*RequestEvent) GetStatus ¶ added in v0.37.0
func (x *RequestEvent) GetStatus() int32
func (*RequestEvent) GetUserAgent ¶ added in v0.39.0
func (x *RequestEvent) GetUserAgent() string
func (*RequestEvent) ProtoMessage ¶ added in v0.37.0
func (*RequestEvent) ProtoMessage()
func (*RequestEvent) ProtoReflect ¶ added in v0.37.0
func (x *RequestEvent) ProtoReflect() protoreflect.Message
func (*RequestEvent) Reset ¶ added in v0.37.0
func (x *RequestEvent) Reset()
func (*RequestEvent) String ¶ added in v0.37.0
func (x *RequestEvent) String() string
type StopTunnelRequest ¶
type StopTunnelRequest struct {
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // GoAway reason sent to the peer; default "stopped-by-operator"
// contains filtered or unexported fields
}
func (*StopTunnelRequest) Descriptor
deprecated
func (*StopTunnelRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopTunnelRequest.ProtoReflect.Descriptor instead.
func (*StopTunnelRequest) GetPeer ¶
func (x *StopTunnelRequest) GetPeer() string
func (*StopTunnelRequest) GetReason ¶
func (x *StopTunnelRequest) GetReason() string
func (*StopTunnelRequest) ProtoMessage ¶
func (*StopTunnelRequest) ProtoMessage()
func (*StopTunnelRequest) ProtoReflect ¶
func (x *StopTunnelRequest) ProtoReflect() protoreflect.Message
func (*StopTunnelRequest) Reset ¶
func (x *StopTunnelRequest) Reset()
func (*StopTunnelRequest) String ¶
func (x *StopTunnelRequest) String() string
type StopTunnelResponse ¶
type StopTunnelResponse struct {
Stopped bool `protobuf:"varint,1,opt,name=stopped,proto3" json:"stopped,omitempty"` // false when no tunnel was attached for that peer
// contains filtered or unexported fields
}
func (*StopTunnelResponse) Descriptor
deprecated
func (*StopTunnelResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopTunnelResponse.ProtoReflect.Descriptor instead.
func (*StopTunnelResponse) GetStopped ¶
func (x *StopTunnelResponse) GetStopped() bool
func (*StopTunnelResponse) ProtoMessage ¶
func (*StopTunnelResponse) ProtoMessage()
func (*StopTunnelResponse) ProtoReflect ¶
func (x *StopTunnelResponse) ProtoReflect() protoreflect.Message
func (*StopTunnelResponse) Reset ¶
func (x *StopTunnelResponse) Reset()
func (*StopTunnelResponse) String ¶
func (x *StopTunnelResponse) String() string
type TunnelEvent ¶ added in v0.3.0
type TunnelEvent struct {
Kind TunnelEvent_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=openotters.holt.v1.TunnelEvent_Kind" json:"kind,omitempty"`
Info *TunnelInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // fully set on ATTACHED; only peer on DETACHED
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` // detach reason, empty on ATTACHED
// contains filtered or unexported fields
}
func (*TunnelEvent) Descriptor
deprecated
added in
v0.3.0
func (*TunnelEvent) Descriptor() ([]byte, []int)
Deprecated: Use TunnelEvent.ProtoReflect.Descriptor instead.
func (*TunnelEvent) GetInfo ¶ added in v0.3.0
func (x *TunnelEvent) GetInfo() *TunnelInfo
func (*TunnelEvent) GetKind ¶ added in v0.3.0
func (x *TunnelEvent) GetKind() TunnelEvent_Kind
func (*TunnelEvent) GetReason ¶ added in v0.3.0
func (x *TunnelEvent) GetReason() string
func (*TunnelEvent) ProtoMessage ¶ added in v0.3.0
func (*TunnelEvent) ProtoMessage()
func (*TunnelEvent) ProtoReflect ¶ added in v0.3.0
func (x *TunnelEvent) ProtoReflect() protoreflect.Message
func (*TunnelEvent) Reset ¶ added in v0.3.0
func (x *TunnelEvent) Reset()
func (*TunnelEvent) String ¶ added in v0.3.0
func (x *TunnelEvent) String() string
type TunnelEvent_Kind ¶ added in v0.3.0
type TunnelEvent_Kind int32
const ( TunnelEvent_KIND_UNSPECIFIED TunnelEvent_Kind = 0 TunnelEvent_KIND_ATTACHED TunnelEvent_Kind = 1 TunnelEvent_KIND_DETACHED TunnelEvent_Kind = 2 )
func (TunnelEvent_Kind) Descriptor ¶ added in v0.3.0
func (TunnelEvent_Kind) Descriptor() protoreflect.EnumDescriptor
func (TunnelEvent_Kind) Enum ¶ added in v0.3.0
func (x TunnelEvent_Kind) Enum() *TunnelEvent_Kind
func (TunnelEvent_Kind) EnumDescriptor
deprecated
added in
v0.3.0
func (TunnelEvent_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use TunnelEvent_Kind.Descriptor instead.
func (TunnelEvent_Kind) Number ¶ added in v0.3.0
func (x TunnelEvent_Kind) Number() protoreflect.EnumNumber
func (TunnelEvent_Kind) String ¶ added in v0.3.0
func (x TunnelEvent_Kind) String() string
func (TunnelEvent_Kind) Type ¶ added in v0.3.0
func (TunnelEvent_Kind) Type() protoreflect.EnumType
type TunnelFrame ¶
type TunnelFrame struct {
// Types that are valid to be assigned to Kind:
//
// *TunnelFrame_Hello
// *TunnelFrame_Welcome
// *TunnelFrame_Data
// *TunnelFrame_GoAway
Kind isTunnelFrame_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
func (*TunnelFrame) Descriptor
deprecated
func (*TunnelFrame) Descriptor() ([]byte, []int)
Deprecated: Use TunnelFrame.ProtoReflect.Descriptor instead.
func (*TunnelFrame) GetData ¶
func (x *TunnelFrame) GetData() []byte
func (*TunnelFrame) GetGoAway ¶
func (x *TunnelFrame) GetGoAway() *GoAway
func (*TunnelFrame) GetHello ¶
func (x *TunnelFrame) GetHello() *Hello
func (*TunnelFrame) GetKind ¶
func (x *TunnelFrame) GetKind() isTunnelFrame_Kind
func (*TunnelFrame) GetWelcome ¶
func (x *TunnelFrame) GetWelcome() *Welcome
func (*TunnelFrame) ProtoMessage ¶
func (*TunnelFrame) ProtoMessage()
func (*TunnelFrame) ProtoReflect ¶
func (x *TunnelFrame) ProtoReflect() protoreflect.Message
func (*TunnelFrame) Reset ¶
func (x *TunnelFrame) Reset()
func (*TunnelFrame) String ¶
func (x *TunnelFrame) String() string
type TunnelFrame_Data ¶
type TunnelFrame_Data struct {
Data []byte `protobuf:"bytes,3,opt,name=data,proto3,oneof"` // raw tunnel bytes, at most 32 KiB per frame
}
type TunnelFrame_GoAway ¶
type TunnelFrame_GoAway struct {
GoAway *GoAway `protobuf:"bytes,4,opt,name=go_away,json=goAway,proto3,oneof"` // graceful detach, either direction
}
type TunnelFrame_Hello ¶
type TunnelFrame_Hello struct {
Hello *Hello `protobuf:"bytes,1,opt,name=hello,proto3,oneof"` // peer → hub; must be the first frame
}
type TunnelFrame_Welcome ¶
type TunnelFrame_Welcome struct {
Welcome *Welcome `protobuf:"bytes,2,opt,name=welcome,proto3,oneof"` // hub → peer; must be the first reply
}
type TunnelInfo ¶
type TunnelInfo struct {
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
PeerVersion string `protobuf:"bytes,2,opt,name=peer_version,json=peerVersion,proto3" json:"peer_version,omitempty"`
AttachedAtUnix int64 `protobuf:"varint,3,opt,name=attached_at_unix,json=attachedAtUnix,proto3" json:"attached_at_unix,omitempty"`
// What the peer said it carries: "http", "https", or "" from a peer
// older than the field.
TunnelType string `protobuf:"bytes,4,opt,name=tunnel_type,json=tunnelType,proto3" json:"tunnel_type,omitempty"`
// contains filtered or unexported fields
}
func (*TunnelInfo) Descriptor
deprecated
func (*TunnelInfo) Descriptor() ([]byte, []int)
Deprecated: Use TunnelInfo.ProtoReflect.Descriptor instead.
func (*TunnelInfo) GetAttachedAtUnix ¶
func (x *TunnelInfo) GetAttachedAtUnix() int64
func (*TunnelInfo) GetPeer ¶
func (x *TunnelInfo) GetPeer() string
func (*TunnelInfo) GetPeerVersion ¶
func (x *TunnelInfo) GetPeerVersion() string
func (*TunnelInfo) GetTunnelType ¶ added in v0.35.0
func (x *TunnelInfo) GetTunnelType() string
func (*TunnelInfo) ProtoMessage ¶
func (*TunnelInfo) ProtoMessage()
func (*TunnelInfo) ProtoReflect ¶
func (x *TunnelInfo) ProtoReflect() protoreflect.Message
func (*TunnelInfo) Reset ¶
func (x *TunnelInfo) Reset()
func (*TunnelInfo) String ¶
func (x *TunnelInfo) String() string
type TunnelType ¶ added in v0.35.0
type TunnelType int32
TunnelType is what a peer carries over its tunnel. HTTP and HTTPS are what the hub serves today: both are an HTTP handler on the peer, HTTPS meaning the payload is TLS end to end (the peer runs a TLS server inside the tunnel and the hub dials it with a matching client config), so it stays encrypted even where the outer hop is terminated at a proxy. TCP and TLS name raw byte streams, which the hub does not carry yet: they are here so a peer that learns to ask for one meets a hub that can refuse it by name.
const ( TunnelType_TUNNEL_TYPE_UNSPECIFIED TunnelType = 0 // a peer older than this field: HTTP TunnelType_TUNNEL_TYPE_HTTP TunnelType = 1 TunnelType_TUNNEL_TYPE_HTTPS TunnelType = 2 TunnelType_TUNNEL_TYPE_TCP TunnelType = 3 // reserved, not carried yet TunnelType_TUNNEL_TYPE_TLS TunnelType = 4 // reserved, not carried yet )
func (TunnelType) Descriptor ¶ added in v0.35.0
func (TunnelType) Descriptor() protoreflect.EnumDescriptor
func (TunnelType) Enum ¶ added in v0.35.0
func (x TunnelType) Enum() *TunnelType
func (TunnelType) EnumDescriptor
deprecated
added in
v0.35.0
func (TunnelType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TunnelType.Descriptor instead.
func (TunnelType) Number ¶ added in v0.35.0
func (x TunnelType) Number() protoreflect.EnumNumber
func (TunnelType) String ¶ added in v0.35.0
func (x TunnelType) String() string
func (TunnelType) Type ¶ added in v0.35.0
func (TunnelType) Type() protoreflect.EnumType
type UnblockPeerRequest ¶
type UnblockPeerRequest struct {
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
// contains filtered or unexported fields
}
func (*UnblockPeerRequest) Descriptor
deprecated
func (*UnblockPeerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnblockPeerRequest.ProtoReflect.Descriptor instead.
func (*UnblockPeerRequest) GetPeer ¶
func (x *UnblockPeerRequest) GetPeer() string
func (*UnblockPeerRequest) ProtoMessage ¶
func (*UnblockPeerRequest) ProtoMessage()
func (*UnblockPeerRequest) ProtoReflect ¶
func (x *UnblockPeerRequest) ProtoReflect() protoreflect.Message
func (*UnblockPeerRequest) Reset ¶
func (x *UnblockPeerRequest) Reset()
func (*UnblockPeerRequest) String ¶
func (x *UnblockPeerRequest) String() string
type UnblockPeerResponse ¶
type UnblockPeerResponse struct {
// contains filtered or unexported fields
}
func (*UnblockPeerResponse) Descriptor
deprecated
func (*UnblockPeerResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnblockPeerResponse.ProtoReflect.Descriptor instead.
func (*UnblockPeerResponse) ProtoMessage ¶
func (*UnblockPeerResponse) ProtoMessage()
func (*UnblockPeerResponse) ProtoReflect ¶
func (x *UnblockPeerResponse) ProtoReflect() protoreflect.Message
func (*UnblockPeerResponse) Reset ¶
func (x *UnblockPeerResponse) Reset()
func (*UnblockPeerResponse) String ¶
func (x *UnblockPeerResponse) String() string
type WatchRequestsRequest ¶ added in v0.37.0
type WatchRequestsRequest struct {
// Only this peer's requests. Empty streams every peer's, which a
// hub carrying a fleet can make a lot of: a client watching one
// peer should say so and let the hub do the filtering.
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
// contains filtered or unexported fields
}
func (*WatchRequestsRequest) Descriptor
deprecated
added in
v0.37.0
func (*WatchRequestsRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequestsRequest.ProtoReflect.Descriptor instead.
func (*WatchRequestsRequest) GetPeer ¶ added in v0.38.0
func (x *WatchRequestsRequest) GetPeer() string
func (*WatchRequestsRequest) ProtoMessage ¶ added in v0.37.0
func (*WatchRequestsRequest) ProtoMessage()
func (*WatchRequestsRequest) ProtoReflect ¶ added in v0.37.0
func (x *WatchRequestsRequest) ProtoReflect() protoreflect.Message
func (*WatchRequestsRequest) Reset ¶ added in v0.37.0
func (x *WatchRequestsRequest) Reset()
func (*WatchRequestsRequest) String ¶ added in v0.37.0
func (x *WatchRequestsRequest) String() string
type WatchTunnelsRequest ¶ added in v0.3.0
type WatchTunnelsRequest struct {
// contains filtered or unexported fields
}
func (*WatchTunnelsRequest) Descriptor
deprecated
added in
v0.3.0
func (*WatchTunnelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchTunnelsRequest.ProtoReflect.Descriptor instead.
func (*WatchTunnelsRequest) ProtoMessage ¶ added in v0.3.0
func (*WatchTunnelsRequest) ProtoMessage()
func (*WatchTunnelsRequest) ProtoReflect ¶ added in v0.3.0
func (x *WatchTunnelsRequest) ProtoReflect() protoreflect.Message
func (*WatchTunnelsRequest) Reset ¶ added in v0.3.0
func (x *WatchTunnelsRequest) Reset()
func (*WatchTunnelsRequest) String ¶ added in v0.3.0
func (x *WatchTunnelsRequest) String() string
type Welcome ¶
type Welcome struct {
ProtocolVersion uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` // version the hub selected (≤ offered)
// contains filtered or unexported fields
}
func (*Welcome) Descriptor
deprecated
func (*Welcome) GetProtocolVersion ¶
func (*Welcome) ProtoMessage ¶
func (*Welcome) ProtoMessage()
func (*Welcome) ProtoReflect ¶
func (x *Welcome) ProtoReflect() protoreflect.Message