Documentation ¶
Index ¶
- Variables
- type Addr
- type C2SWrapper
- func (*C2SWrapper) Descriptor() ([]byte, []int)deprecated
- func (x *C2SWrapper) GetDecoyAddress() []byte
- func (x *C2SWrapper) GetRegRespBytes() []byte
- func (x *C2SWrapper) GetRegRespSignature() []byte
- func (x *C2SWrapper) GetRegistrationAddress() []byte
- func (x *C2SWrapper) GetRegistrationPayload() *ClientToStation
- func (x *C2SWrapper) GetRegistrationResponse() *RegistrationResponse
- func (x *C2SWrapper) GetRegistrationSource() RegistrationSource
- func (x *C2SWrapper) GetSharedSecret() []byte
- func (*C2SWrapper) ProtoMessage()
- func (x *C2SWrapper) ProtoReflect() protoreflect.Message
- func (x *C2SWrapper) Reset()
- func (x *C2SWrapper) String() string
- type C2S_Transition
- func (C2S_Transition) Descriptor() protoreflect.EnumDescriptor
- func (x C2S_Transition) Enum() *C2S_Transition
- func (C2S_Transition) EnumDescriptor() ([]byte, []int)deprecated
- func (x C2S_Transition) Number() protoreflect.EnumNumber
- func (x C2S_Transition) String() string
- func (C2S_Transition) Type() protoreflect.EnumType
- func (x *C2S_Transition) UnmarshalJSON(b []byte) errordeprecated
- type ClientConf
- func (*ClientConf) Descriptor() ([]byte, []int)deprecated
- func (x *ClientConf) GetConjurePubkey() *PubKey
- func (x *ClientConf) GetDecoyList() *DecoyList
- func (x *ClientConf) GetDefaultPubkey() *PubKey
- func (x *ClientConf) GetDnsRegConf() *DnsRegConf
- func (x *ClientConf) GetGeneration() uint32
- func (x *ClientConf) GetPhantomSubnetsList() *PhantomSubnetsList
- func (*ClientConf) ProtoMessage()
- func (x *ClientConf) ProtoReflect() protoreflect.Message
- func (x *ClientConf) Reset()
- func (x *ClientConf) String() string
- type ClientToStation
- func (*ClientToStation) Descriptor() ([]byte, []int)deprecated
- func (x *ClientToStation) GetClientLibVersion() uint32
- func (x *ClientToStation) GetCovertAddress() string
- func (x *ClientToStation) GetDecoyListGeneration() uint32
- func (x *ClientToStation) GetDisableRegistrarOverrides() bool
- func (x *ClientToStation) GetFailedDecoys() []string
- func (x *ClientToStation) GetFlags() *RegistrationFlags
- func (x *ClientToStation) GetMaskedDecoyServerName() string
- func (x *ClientToStation) GetPadding() []byte
- func (x *ClientToStation) GetProtocolVersion() uint32
- func (x *ClientToStation) GetStateTransition() C2S_Transition
- func (x *ClientToStation) GetStats() *SessionStats
- func (x *ClientToStation) GetTransport() TransportType
- func (x *ClientToStation) GetTransportParams() *anypb.Any
- func (x *ClientToStation) GetUploadSync() uint64
- func (x *ClientToStation) GetV4Support() bool
- func (x *ClientToStation) GetV6Support() bool
- func (x *ClientToStation) GetWebrtcSignal() *WebRTCSignal
- func (*ClientToStation) ProtoMessage()
- func (x *ClientToStation) ProtoReflect() protoreflect.Message
- func (x *ClientToStation) Reset()
- func (x *ClientToStation) String() string
- type DTLSTransportParams
- func (*DTLSTransportParams) Descriptor() ([]byte, []int)deprecated
- func (x *DTLSTransportParams) GetRandomizeDstPort() bool
- func (x *DTLSTransportParams) GetSrcAddr4() *Addr
- func (x *DTLSTransportParams) GetSrcAddr6() *Addr
- func (x *DTLSTransportParams) GetUnordered() bool
- func (*DTLSTransportParams) ProtoMessage()
- func (x *DTLSTransportParams) ProtoReflect() protoreflect.Message
- func (x *DTLSTransportParams) Reset()
- func (x *DTLSTransportParams) String() string
- type DecoyList
- type DnsRegConf
- func (*DnsRegConf) Descriptor() ([]byte, []int)deprecated
- func (x *DnsRegConf) GetDnsRegMethod() DnsRegMethod
- func (x *DnsRegConf) GetDomain() string
- func (x *DnsRegConf) GetPubkey() []byte
- func (x *DnsRegConf) GetStunServer() string
- func (x *DnsRegConf) GetTarget() string
- func (x *DnsRegConf) GetUtlsDistribution() string
- func (*DnsRegConf) ProtoMessage()
- func (x *DnsRegConf) ProtoReflect() protoreflect.Message
- func (x *DnsRegConf) Reset()
- func (x *DnsRegConf) String() string
- type DnsRegMethod
- func (DnsRegMethod) Descriptor() protoreflect.EnumDescriptor
- func (x DnsRegMethod) Enum() *DnsRegMethod
- func (DnsRegMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x DnsRegMethod) Number() protoreflect.EnumNumber
- func (x DnsRegMethod) String() string
- func (DnsRegMethod) Type() protoreflect.EnumType
- func (x *DnsRegMethod) UnmarshalJSON(b []byte) errordeprecated
- type DnsResponse
- func (*DnsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DnsResponse) GetBidirectionalResponse() *RegistrationResponse
- func (x *DnsResponse) GetClientconfOutdated() bool
- func (x *DnsResponse) GetSuccess() bool
- func (*DnsResponse) ProtoMessage()
- func (x *DnsResponse) ProtoReflect() protoreflect.Message
- func (x *DnsResponse) Reset()
- func (x *DnsResponse) String() string
- type ErrorReasonS2C
- func (ErrorReasonS2C) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReasonS2C) Enum() *ErrorReasonS2C
- func (ErrorReasonS2C) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReasonS2C) Number() protoreflect.EnumNumber
- func (x ErrorReasonS2C) String() string
- func (ErrorReasonS2C) Type() protoreflect.EnumType
- func (x *ErrorReasonS2C) UnmarshalJSON(b []byte) errordeprecated
- type GenericTransportParams
- func (*GenericTransportParams) Descriptor() ([]byte, []int)deprecated
- func (x *GenericTransportParams) GetRandomizeDstPort() bool
- func (*GenericTransportParams) ProtoMessage()
- func (x *GenericTransportParams) ProtoReflect() protoreflect.Message
- func (x *GenericTransportParams) Reset()
- func (x *GenericTransportParams) String() string
- type IPProto
- func (IPProto) Descriptor() protoreflect.EnumDescriptor
- func (x IPProto) Enum() *IPProto
- func (IPProto) EnumDescriptor() ([]byte, []int)deprecated
- func (x IPProto) Number() protoreflect.EnumNumber
- func (x IPProto) String() string
- func (IPProto) Type() protoreflect.EnumType
- func (x *IPProto) UnmarshalJSON(b []byte) errordeprecated
- type KeyType
- func (KeyType) Descriptor() protoreflect.EnumDescriptor
- func (x KeyType) Enum() *KeyType
- func (KeyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x KeyType) Number() protoreflect.EnumNumber
- func (x KeyType) String() string
- func (KeyType) Type() protoreflect.EnumType
- func (x *KeyType) UnmarshalJSON(b []byte) errordeprecated
- type PhantomSubnets
- func (*PhantomSubnets) Descriptor() ([]byte, []int)deprecated
- func (x *PhantomSubnets) GetRandomizeDstPort() bool
- func (x *PhantomSubnets) GetSubnets() []string
- func (x *PhantomSubnets) GetWeight() uint32
- func (*PhantomSubnets) ProtoMessage()
- func (x *PhantomSubnets) ProtoReflect() protoreflect.Message
- func (x *PhantomSubnets) Reset()
- func (x *PhantomSubnets) String() string
- type PhantomSubnetsList
- func (*PhantomSubnetsList) Descriptor() ([]byte, []int)deprecated
- func (x *PhantomSubnetsList) GetWeightedSubnets() []*PhantomSubnets
- func (*PhantomSubnetsList) ProtoMessage()
- func (x *PhantomSubnetsList) ProtoReflect() protoreflect.Message
- func (x *PhantomSubnetsList) Reset()
- func (x *PhantomSubnetsList) String() string
- type PrefixTransportParams
- func (*PrefixTransportParams) Descriptor() ([]byte, []int)deprecated
- func (x *PrefixTransportParams) GetCustomFlushPolicy() int32
- func (x *PrefixTransportParams) GetPrefix() []byte
- func (x *PrefixTransportParams) GetPrefixId() int32
- func (x *PrefixTransportParams) GetRandomizeDstPort() bool
- func (*PrefixTransportParams) ProtoMessage()
- func (x *PrefixTransportParams) ProtoReflect() protoreflect.Message
- func (x *PrefixTransportParams) Reset()
- func (x *PrefixTransportParams) String() string
- type PubKey
- type RegistrationFlags
- func (*RegistrationFlags) Descriptor() ([]byte, []int)deprecated
- func (x *RegistrationFlags) GetDarkDecoy() bool
- func (x *RegistrationFlags) GetPrescanned() bool
- func (x *RegistrationFlags) GetProxyHeader() bool
- func (x *RegistrationFlags) GetUploadOnly() bool
- func (x *RegistrationFlags) GetUse_TIL() bool
- func (*RegistrationFlags) ProtoMessage()
- func (x *RegistrationFlags) ProtoReflect() protoreflect.Message
- func (x *RegistrationFlags) Reset()
- func (x *RegistrationFlags) String() string
- type RegistrationResponse
- func (*RegistrationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegistrationResponse) GetClientConf() *ClientConf
- func (x *RegistrationResponse) GetDstPort() uint32
- func (x *RegistrationResponse) GetError() string
- func (x *RegistrationResponse) GetIpv4Addr() uint32
- func (x *RegistrationResponse) GetIpv6Addr() []byte
- func (x *RegistrationResponse) GetPhantomsSupportPortRand() bool
- func (x *RegistrationResponse) GetServerRandom() []byte
- func (x *RegistrationResponse) GetTransportParams() *anypb.Any
- func (*RegistrationResponse) ProtoMessage()
- func (x *RegistrationResponse) ProtoReflect() protoreflect.Message
- func (x *RegistrationResponse) Reset()
- func (x *RegistrationResponse) String() string
- type RegistrationSource
- func (RegistrationSource) Descriptor() protoreflect.EnumDescriptor
- func (x RegistrationSource) Enum() *RegistrationSource
- func (RegistrationSource) EnumDescriptor() ([]byte, []int)deprecated
- func (x RegistrationSource) Number() protoreflect.EnumNumber
- func (x RegistrationSource) String() string
- func (RegistrationSource) Type() protoreflect.EnumType
- func (x *RegistrationSource) UnmarshalJSON(b []byte) errordeprecated
- type S2C_Transition
- func (S2C_Transition) Descriptor() protoreflect.EnumDescriptor
- func (x S2C_Transition) Enum() *S2C_Transition
- func (S2C_Transition) EnumDescriptor() ([]byte, []int)deprecated
- func (x S2C_Transition) Number() protoreflect.EnumNumber
- func (x S2C_Transition) String() string
- func (S2C_Transition) Type() protoreflect.EnumType
- func (x *S2C_Transition) UnmarshalJSON(b []byte) errordeprecated
- type SessionStats
- func (*SessionStats) Descriptor() ([]byte, []int)deprecated
- func (x *SessionStats) GetFailedDecoysAmount() uint32
- func (x *SessionStats) GetRttToStation() uint32
- func (x *SessionStats) GetTcpToDecoy() uint32
- func (x *SessionStats) GetTlsToDecoy() uint32
- func (x *SessionStats) GetTotalTimeToConnect() uint32
- func (*SessionStats) ProtoMessage()
- func (x *SessionStats) ProtoReflect() protoreflect.Message
- func (x *SessionStats) Reset()
- func (x *SessionStats) String() string
- type StationOperations
- func (StationOperations) Descriptor() protoreflect.EnumDescriptor
- func (x StationOperations) Enum() *StationOperations
- func (StationOperations) EnumDescriptor() ([]byte, []int)deprecated
- func (x StationOperations) Number() protoreflect.EnumNumber
- func (x StationOperations) String() string
- func (StationOperations) Type() protoreflect.EnumType
- func (x *StationOperations) UnmarshalJSON(b []byte) errordeprecated
- type StationToClient
- func (*StationToClient) Descriptor() ([]byte, []int)deprecated
- func (x *StationToClient) GetConfigInfo() *ClientConf
- func (x *StationToClient) GetErrReason() ErrorReasonS2C
- func (x *StationToClient) GetPadding() []byte
- func (x *StationToClient) GetProtocolVersion() uint32
- func (x *StationToClient) GetStateTransition() S2C_Transition
- func (x *StationToClient) GetStationId() string
- func (x *StationToClient) GetTmpBackoff() uint32
- func (*StationToClient) ProtoMessage()
- func (x *StationToClient) ProtoReflect() protoreflect.Message
- func (x *StationToClient) Reset()
- func (x *StationToClient) String() string
- type StationToDetector
- func (*StationToDetector) Descriptor() ([]byte, []int)deprecated
- func (x *StationToDetector) GetClientIp() string
- func (x *StationToDetector) GetDstPort() uint32
- func (x *StationToDetector) GetOperation() StationOperations
- func (x *StationToDetector) GetPhantomIp() string
- func (x *StationToDetector) GetProto() IPProto
- func (x *StationToDetector) GetSrcPort() uint32
- func (x *StationToDetector) GetTimeoutNs() uint64
- func (*StationToDetector) ProtoMessage()
- func (x *StationToDetector) ProtoReflect() protoreflect.Message
- func (x *StationToDetector) Reset()
- func (x *StationToDetector) String() string
- type TLSDecoySpec
- func (*TLSDecoySpec) Descriptor() ([]byte, []int)deprecated
- func (x *TLSDecoySpec) GetHostname() string
- func (ds *TLSDecoySpec) GetIpAddrStr() string
- func (x *TLSDecoySpec) GetIpv4Addr() uint32
- func (x *TLSDecoySpec) GetIpv6Addr() []byte
- func (x *TLSDecoySpec) GetPubkey() *PubKey
- func (x *TLSDecoySpec) GetTcpwin() uint32
- func (x *TLSDecoySpec) GetTimeout() uint32
- func (*TLSDecoySpec) ProtoMessage()
- func (x *TLSDecoySpec) ProtoReflect() protoreflect.Message
- func (x *TLSDecoySpec) Reset()
- func (x *TLSDecoySpec) String() string
- type TransportType
- func (TransportType) Descriptor() protoreflect.EnumDescriptor
- func (x TransportType) Enum() *TransportType
- func (TransportType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransportType) Number() protoreflect.EnumNumber
- func (x TransportType) String() string
- func (TransportType) Type() protoreflect.EnumType
- func (x *TransportType) UnmarshalJSON(b []byte) errordeprecated
- type WebRTCICECandidate
- func (*WebRTCICECandidate) Descriptor() ([]byte, []int)deprecated
- func (x *WebRTCICECandidate) GetComposedInfo() uint32
- func (x *WebRTCICECandidate) GetIpLower() uint64
- func (x *WebRTCICECandidate) GetIpUpper() uint64
- func (*WebRTCICECandidate) ProtoMessage()
- func (x *WebRTCICECandidate) ProtoReflect() protoreflect.Message
- func (x *WebRTCICECandidate) Reset()
- func (x *WebRTCICECandidate) String() string
- type WebRTCSDP
- func (*WebRTCSDP) Descriptor() ([]byte, []int)deprecated
- func (x *WebRTCSDP) GetCandidates() []*WebRTCICECandidate
- func (x *WebRTCSDP) GetType() uint32
- func (*WebRTCSDP) ProtoMessage()
- func (x *WebRTCSDP) ProtoReflect() protoreflect.Message
- func (x *WebRTCSDP) Reset()
- func (x *WebRTCSDP) String() string
- type WebRTCSignal
- func (*WebRTCSignal) Descriptor() ([]byte, []int)deprecated
- func (x *WebRTCSignal) GetSdp() *WebRTCSDP
- func (x *WebRTCSignal) GetSeed() string
- func (*WebRTCSignal) ProtoMessage()
- func (x *WebRTCSignal) ProtoReflect() protoreflect.Message
- func (x *WebRTCSignal) Reset()
- func (x *WebRTCSignal) String() string
Constants ¶
This section is empty.
Variables ¶
var ( KeyType_name = map[int32]string{ 90: "AES_GCM_128", 91: "AES_GCM_256", } KeyType_value = map[string]int32{ "AES_GCM_128": 90, "AES_GCM_256": 91, } )
Enum value maps for KeyType.
var ( DnsRegMethod_name = map[int32]string{ 1: "UDP", 2: "DOT", 3: "DOH", } DnsRegMethod_value = map[string]int32{ "UDP": 1, "DOT": 2, "DOH": 3, } )
Enum value maps for DnsRegMethod.
var ( C2S_Transition_name = map[int32]string{ 0: "C2S_NO_CHANGE", 1: "C2S_SESSION_INIT", 11: "C2S_SESSION_COVERT_INIT", 2: "C2S_EXPECT_RECONNECT", 3: "C2S_SESSION_CLOSE", 4: "C2S_YIELD_UPLOAD", 5: "C2S_ACQUIRE_UPLOAD", 6: "C2S_EXPECT_UPLOADONLY_RECONN", 255: "C2S_ERROR", } C2S_Transition_value = map[string]int32{ "C2S_NO_CHANGE": 0, "C2S_SESSION_INIT": 1, "C2S_SESSION_COVERT_INIT": 11, "C2S_EXPECT_RECONNECT": 2, "C2S_SESSION_CLOSE": 3, "C2S_YIELD_UPLOAD": 4, "C2S_ACQUIRE_UPLOAD": 5, "C2S_EXPECT_UPLOADONLY_RECONN": 6, "C2S_ERROR": 255, } )
Enum value maps for C2S_Transition.
var ( S2C_Transition_name = map[int32]string{ 0: "S2C_NO_CHANGE", 1: "S2C_SESSION_INIT", 11: "S2C_SESSION_COVERT_INIT", 2: "S2C_CONFIRM_RECONNECT", 3: "S2C_SESSION_CLOSE", 255: "S2C_ERROR", } S2C_Transition_value = map[string]int32{ "S2C_NO_CHANGE": 0, "S2C_SESSION_INIT": 1, "S2C_SESSION_COVERT_INIT": 11, "S2C_CONFIRM_RECONNECT": 2, "S2C_SESSION_CLOSE": 3, "S2C_ERROR": 255, } )
Enum value maps for S2C_Transition.
var ( ErrorReasonS2C_name = map[int32]string{ 0: "NO_ERROR", 1: "COVERT_STREAM", 2: "CLIENT_REPORTED", 3: "CLIENT_PROTOCOL", 4: "STATION_INTERNAL", 5: "DECOY_OVERLOAD", 100: "CLIENT_STREAM", 101: "CLIENT_TIMEOUT", } ErrorReasonS2C_value = map[string]int32{ "NO_ERROR": 0, "COVERT_STREAM": 1, "CLIENT_REPORTED": 2, "CLIENT_PROTOCOL": 3, "STATION_INTERNAL": 4, "DECOY_OVERLOAD": 5, "CLIENT_STREAM": 100, "CLIENT_TIMEOUT": 101, } )
Enum value maps for ErrorReasonS2C.
var ( TransportType_name = map[int32]string{ 0: "Null", 1: "Min", 2: "Obfs4", 3: "DTLS", 4: "Prefix", 5: "uTLS", 6: "Format", 7: "WASM", 8: "FTE", 9: "Quic", 99: "Webrtc", } TransportType_value = map[string]int32{ "Null": 0, "Min": 1, "Obfs4": 2, "DTLS": 3, "Prefix": 4, "uTLS": 5, "Format": 6, "WASM": 7, "FTE": 8, "Quic": 9, "Webrtc": 99, } )
Enum value maps for TransportType.
var ( RegistrationSource_name = map[int32]string{ 0: "Unspecified", 1: "Detector", 2: "API", 3: "DetectorPrescan", 4: "BidirectionalAPI", 5: "DNS", 6: "BidirectionalDNS", } RegistrationSource_value = map[string]int32{ "Unspecified": 0, "Detector": 1, "API": 2, "DetectorPrescan": 3, "BidirectionalAPI": 4, "DNS": 5, "BidirectionalDNS": 6, } )
Enum value maps for RegistrationSource.
var ( StationOperations_name = map[int32]string{ 0: "Unknown", 1: "New", 2: "Update", 3: "Clear", } StationOperations_value = map[string]int32{ "Unknown": 0, "New": 1, "Update": 2, "Clear": 3, } )
Enum value maps for StationOperations.
var ( IPProto_name = map[int32]string{ 0: "Unk", 1: "Tcp", 2: "Udp", } IPProto_value = map[string]int32{ "Unk": 0, "Tcp": 1, "Udp": 2, } )
Enum value maps for IPProto.
var File_signalling_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Addr ¶ added in v0.7.2
type Addr struct { IP []byte `protobuf:"bytes,1,opt,name=IP" json:"IP,omitempty"` Port *uint32 `protobuf:"varint,2,opt,name=Port" json:"Port,omitempty"` // contains filtered or unexported fields }
func (*Addr) Descriptor
deprecated
added in
v0.7.2
func (*Addr) ProtoMessage ¶ added in v0.7.2
func (*Addr) ProtoMessage()
func (*Addr) ProtoReflect ¶ added in v0.7.2
func (x *Addr) ProtoReflect() protoreflect.Message
type C2SWrapper ¶
type C2SWrapper struct { RegistrationPayload *ClientToStation `protobuf:"bytes,3,opt,name=registration_payload,json=registrationPayload" json:"registration_payload,omitempty"` RegistrationSource *RegistrationSource `` /* 139-byte string literal not displayed */ // client source address when receiving a registration RegistrationAddress []byte `protobuf:"bytes,6,opt,name=registration_address,json=registrationAddress" json:"registration_address,omitempty"` // Decoy address used when registering over Decoy registrar DecoyAddress []byte `protobuf:"bytes,7,opt,name=decoy_address,json=decoyAddress" json:"decoy_address,omitempty"` // The next three fields allow an independent registrar (trusted by a station w/ a zmq keypair) to // share the registration overrides that it assigned to the client with the station(s). // Registration Respose is here to allow a parsed object with direct access to the fields within. // RegRespBytes provides a serialized verion of the Registration response so that the signature of // the Bidirectional registrar can be validated before a station applies any overrides present in // the Registration Response. // // If you are reading this in the future and you want to extend the functionality here it might // make sense to make the RegistrationResponse that is sent to the client a distinct message from // the one that gets sent to the stations. RegistrationResponse *RegistrationResponse `protobuf:"bytes,8,opt,name=registration_response,json=registrationResponse" json:"registration_response,omitempty"` RegRespBytes []byte `protobuf:"bytes,9,opt,name=RegRespBytes" json:"RegRespBytes,omitempty"` RegRespSignature []byte `protobuf:"bytes,10,opt,name=RegRespSignature" json:"RegRespSignature,omitempty"` // contains filtered or unexported fields }
func (*C2SWrapper) Descriptor
deprecated
func (*C2SWrapper) Descriptor() ([]byte, []int)
Deprecated: Use C2SWrapper.ProtoReflect.Descriptor instead.
func (*C2SWrapper) GetDecoyAddress ¶
func (x *C2SWrapper) GetDecoyAddress() []byte
func (*C2SWrapper) GetRegRespBytes ¶
func (x *C2SWrapper) GetRegRespBytes() []byte
func (*C2SWrapper) GetRegRespSignature ¶
func (x *C2SWrapper) GetRegRespSignature() []byte
func (*C2SWrapper) GetRegistrationAddress ¶
func (x *C2SWrapper) GetRegistrationAddress() []byte
func (*C2SWrapper) GetRegistrationPayload ¶
func (x *C2SWrapper) GetRegistrationPayload() *ClientToStation
func (*C2SWrapper) GetRegistrationResponse ¶
func (x *C2SWrapper) GetRegistrationResponse() *RegistrationResponse
func (*C2SWrapper) GetRegistrationSource ¶
func (x *C2SWrapper) GetRegistrationSource() RegistrationSource
func (*C2SWrapper) GetSharedSecret ¶
func (x *C2SWrapper) GetSharedSecret() []byte
func (*C2SWrapper) ProtoMessage ¶
func (*C2SWrapper) ProtoMessage()
func (*C2SWrapper) ProtoReflect ¶
func (x *C2SWrapper) ProtoReflect() protoreflect.Message
func (*C2SWrapper) Reset ¶
func (x *C2SWrapper) Reset()
func (*C2SWrapper) String ¶
func (x *C2SWrapper) String() string
type C2S_Transition ¶
type C2S_Transition int32
State transitions of the client
const ( C2S_Transition_C2S_NO_CHANGE C2S_Transition = 0 C2S_Transition_C2S_SESSION_INIT C2S_Transition = 1 // connect me to squid C2S_Transition_C2S_SESSION_COVERT_INIT C2S_Transition = 11 // connect me to provided covert C2S_Transition_C2S_EXPECT_RECONNECT C2S_Transition = 2 C2S_Transition_C2S_SESSION_CLOSE C2S_Transition = 3 C2S_Transition_C2S_YIELD_UPLOAD C2S_Transition = 4 C2S_Transition_C2S_ACQUIRE_UPLOAD C2S_Transition = 5 C2S_Transition_C2S_EXPECT_UPLOADONLY_RECONN C2S_Transition = 6 C2S_Transition_C2S_ERROR C2S_Transition = 255 )
func (C2S_Transition) Descriptor ¶
func (C2S_Transition) Descriptor() protoreflect.EnumDescriptor
func (C2S_Transition) Enum ¶
func (x C2S_Transition) Enum() *C2S_Transition
func (C2S_Transition) EnumDescriptor
deprecated
func (C2S_Transition) EnumDescriptor() ([]byte, []int)
Deprecated: Use C2S_Transition.Descriptor instead.
func (C2S_Transition) Number ¶
func (x C2S_Transition) Number() protoreflect.EnumNumber
func (C2S_Transition) String ¶
func (x C2S_Transition) String() string
func (C2S_Transition) Type ¶
func (C2S_Transition) Type() protoreflect.EnumType
func (*C2S_Transition) UnmarshalJSON
deprecated
func (x *C2S_Transition) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ClientConf ¶
type ClientConf struct { DecoyList *DecoyList `protobuf:"bytes,1,opt,name=decoy_list,json=decoyList" json:"decoy_list,omitempty"` Generation *uint32 `protobuf:"varint,2,opt,name=generation" json:"generation,omitempty"` DefaultPubkey *PubKey `protobuf:"bytes,3,opt,name=default_pubkey,json=defaultPubkey" json:"default_pubkey,omitempty"` PhantomSubnetsList *PhantomSubnetsList `protobuf:"bytes,4,opt,name=phantom_subnets_list,json=phantomSubnetsList" json:"phantom_subnets_list,omitempty"` ConjurePubkey *PubKey `protobuf:"bytes,5,opt,name=conjure_pubkey,json=conjurePubkey" json:"conjure_pubkey,omitempty"` DnsRegConf *DnsRegConf `protobuf:"bytes,6,opt,name=dns_reg_conf,json=dnsRegConf" json:"dns_reg_conf,omitempty"` // contains filtered or unexported fields }
func (*ClientConf) Descriptor
deprecated
func (*ClientConf) Descriptor() ([]byte, []int)
Deprecated: Use ClientConf.ProtoReflect.Descriptor instead.
func (*ClientConf) GetConjurePubkey ¶
func (x *ClientConf) GetConjurePubkey() *PubKey
func (*ClientConf) GetDecoyList ¶
func (x *ClientConf) GetDecoyList() *DecoyList
func (*ClientConf) GetDefaultPubkey ¶
func (x *ClientConf) GetDefaultPubkey() *PubKey
func (*ClientConf) GetDnsRegConf ¶
func (x *ClientConf) GetDnsRegConf() *DnsRegConf
func (*ClientConf) GetGeneration ¶
func (x *ClientConf) GetGeneration() uint32
func (*ClientConf) GetPhantomSubnetsList ¶
func (x *ClientConf) GetPhantomSubnetsList() *PhantomSubnetsList
func (*ClientConf) ProtoMessage ¶
func (*ClientConf) ProtoMessage()
func (*ClientConf) ProtoReflect ¶
func (x *ClientConf) ProtoReflect() protoreflect.Message
func (*ClientConf) Reset ¶
func (x *ClientConf) Reset()
func (*ClientConf) String ¶
func (x *ClientConf) String() string
type ClientToStation ¶
type ClientToStation struct { ProtocolVersion *uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion" json:"protocol_version,omitempty"` // The client reports its decoy list's version number here, which the // station can use to decide whether to send an updated one. The station // should always send a list if this field is set to 0. DecoyListGeneration *uint32 `protobuf:"varint,2,opt,name=decoy_list_generation,json=decoyListGeneration" json:"decoy_list_generation,omitempty"` StateTransition *C2S_Transition `` /* 126-byte string literal not displayed */ // The position in the overall session's upload sequence where the current // YIELD=>ACQUIRE switchover is happening. UploadSync *uint64 `protobuf:"varint,4,opt,name=upload_sync,json=uploadSync" json:"upload_sync,omitempty"` // High level client library version used for indicating feature support, or // lack therof. ClientLibVersion *uint32 `protobuf:"varint,5,opt,name=client_lib_version,json=clientLibVersion" json:"client_lib_version,omitempty"` // Indicates whether the client will allow the registrar to provide alternative parameters that // may work better in substitute for the deterministically selected parameters. This only works // for bidirectional registration methods where the client receives a RegistrationResponse. DisableRegistrarOverrides *bool `` /* 132-byte string literal not displayed */ // List of decoys that client have unsuccessfully tried in current session. // Could be sent in chunks FailedDecoys []string `protobuf:"bytes,10,rep,name=failed_decoys,json=failedDecoys" json:"failed_decoys,omitempty"` Stats *SessionStats `protobuf:"bytes,11,opt,name=stats" json:"stats,omitempty"` // NullTransport, MinTransport, Obfs4Transport, etc. Transport type we want from phantom proxy Transport *TransportType `protobuf:"varint,12,opt,name=transport,enum=proto.TransportType" json:"transport,omitempty"` TransportParams *anypb.Any `protobuf:"bytes,13,opt,name=transport_params,json=transportParams" json:"transport_params,omitempty"` // Station is only required to check this variable during session initialization. // If set, station must facilitate connection to said target by itself, i.e. write into squid // socket an HTTP/SOCKS/any other connection request. // covert_address must have exactly one ':' colon, that separates host (literal IP address or // resolvable hostname) and port // TODO: make it required for initialization, and stop connecting any client straight to squid? CovertAddress *string `protobuf:"bytes,20,opt,name=covert_address,json=covertAddress" json:"covert_address,omitempty"` // Used in dark decoys to signal which dark decoy it will connect to. MaskedDecoyServerName *string `protobuf:"bytes,21,opt,name=masked_decoy_server_name,json=maskedDecoyServerName" json:"masked_decoy_server_name,omitempty"` // Used to indicate to server if client is registering v4, v6 or both V6Support *bool `protobuf:"varint,22,opt,name=v6_support,json=v6Support" json:"v6_support,omitempty"` V4Support *bool `protobuf:"varint,23,opt,name=v4_support,json=v4Support" json:"v4_support,omitempty"` // A collection of optional flags for the registration. Flags *RegistrationFlags `protobuf:"bytes,24,opt,name=flags" json:"flags,omitempty"` // Transport Extensions // TODO(jmwample) - move to WebRTC specific transport params protobuf message. WebrtcSignal *WebRTCSignal `protobuf:"bytes,31,opt,name=webrtc_signal,json=webrtcSignal" json:"webrtc_signal,omitempty"` // Random-sized junk to defeat packet size fingerprinting. Padding []byte `protobuf:"bytes,100,opt,name=padding" json:"padding,omitempty"` // contains filtered or unexported fields }
func (*ClientToStation) Descriptor
deprecated
func (*ClientToStation) Descriptor() ([]byte, []int)
Deprecated: Use ClientToStation.ProtoReflect.Descriptor instead.
func (*ClientToStation) GetClientLibVersion ¶
func (x *ClientToStation) GetClientLibVersion() uint32
func (*ClientToStation) GetCovertAddress ¶
func (x *ClientToStation) GetCovertAddress() string
func (*ClientToStation) GetDecoyListGeneration ¶
func (x *ClientToStation) GetDecoyListGeneration() uint32
func (*ClientToStation) GetDisableRegistrarOverrides ¶
func (x *ClientToStation) GetDisableRegistrarOverrides() bool
func (*ClientToStation) GetFailedDecoys ¶
func (x *ClientToStation) GetFailedDecoys() []string
func (*ClientToStation) GetFlags ¶
func (x *ClientToStation) GetFlags() *RegistrationFlags
func (*ClientToStation) GetMaskedDecoyServerName ¶
func (x *ClientToStation) GetMaskedDecoyServerName() string
func (*ClientToStation) GetPadding ¶
func (x *ClientToStation) GetPadding() []byte
func (*ClientToStation) GetProtocolVersion ¶
func (x *ClientToStation) GetProtocolVersion() uint32
func (*ClientToStation) GetStateTransition ¶
func (x *ClientToStation) GetStateTransition() C2S_Transition
func (*ClientToStation) GetStats ¶
func (x *ClientToStation) GetStats() *SessionStats
func (*ClientToStation) GetTransport ¶
func (x *ClientToStation) GetTransport() TransportType
func (*ClientToStation) GetTransportParams ¶
func (x *ClientToStation) GetTransportParams() *anypb.Any
func (*ClientToStation) GetUploadSync ¶
func (x *ClientToStation) GetUploadSync() uint64
func (*ClientToStation) GetV4Support ¶
func (x *ClientToStation) GetV4Support() bool
func (*ClientToStation) GetV6Support ¶
func (x *ClientToStation) GetV6Support() bool
func (*ClientToStation) GetWebrtcSignal ¶
func (x *ClientToStation) GetWebrtcSignal() *WebRTCSignal
func (*ClientToStation) ProtoMessage ¶
func (*ClientToStation) ProtoMessage()
func (*ClientToStation) ProtoReflect ¶
func (x *ClientToStation) ProtoReflect() protoreflect.Message
func (*ClientToStation) Reset ¶
func (x *ClientToStation) Reset()
func (*ClientToStation) String ¶
func (x *ClientToStation) String() string
type DTLSTransportParams ¶ added in v0.6.1
type DTLSTransportParams struct { SrcAddr4 *Addr `protobuf:"bytes,1,opt,name=src_addr4,json=srcAddr4" json:"src_addr4,omitempty"` SrcAddr6 *Addr `protobuf:"bytes,2,opt,name=src_addr6,json=srcAddr6" json:"src_addr6,omitempty"` RandomizeDstPort *bool `protobuf:"varint,3,opt,name=randomize_dst_port,json=randomizeDstPort" json:"randomize_dst_port,omitempty"` // Unordered sets the reliability of the DTLS stream to unordered Unordered *bool `protobuf:"varint,4,opt,name=unordered" json:"unordered,omitempty"` // contains filtered or unexported fields }
func (*DTLSTransportParams) Descriptor
deprecated
added in
v0.6.1
func (*DTLSTransportParams) Descriptor() ([]byte, []int)
Deprecated: Use DTLSTransportParams.ProtoReflect.Descriptor instead.
func (*DTLSTransportParams) GetRandomizeDstPort ¶ added in v0.6.5
func (x *DTLSTransportParams) GetRandomizeDstPort() bool
func (*DTLSTransportParams) GetSrcAddr4 ¶ added in v0.7.2
func (x *DTLSTransportParams) GetSrcAddr4() *Addr
func (*DTLSTransportParams) GetSrcAddr6 ¶ added in v0.7.2
func (x *DTLSTransportParams) GetSrcAddr6() *Addr
func (*DTLSTransportParams) GetUnordered ¶ added in v0.7.4
func (x *DTLSTransportParams) GetUnordered() bool
func (*DTLSTransportParams) ProtoMessage ¶ added in v0.6.1
func (*DTLSTransportParams) ProtoMessage()
func (*DTLSTransportParams) ProtoReflect ¶ added in v0.6.1
func (x *DTLSTransportParams) ProtoReflect() protoreflect.Message
func (*DTLSTransportParams) Reset ¶ added in v0.6.1
func (x *DTLSTransportParams) Reset()
func (*DTLSTransportParams) String ¶ added in v0.6.1
func (x *DTLSTransportParams) String() string
type DecoyList ¶
type DecoyList struct { TlsDecoys []*TLSDecoySpec `protobuf:"bytes,1,rep,name=tls_decoys,json=tlsDecoys" json:"tls_decoys,omitempty"` // contains filtered or unexported fields }
func (*DecoyList) Descriptor
deprecated
func (*DecoyList) GetTlsDecoys ¶
func (x *DecoyList) GetTlsDecoys() []*TLSDecoySpec
func (*DecoyList) ProtoMessage ¶
func (*DecoyList) ProtoMessage()
func (*DecoyList) ProtoReflect ¶
func (x *DecoyList) ProtoReflect() protoreflect.Message
type DnsRegConf ¶
type DnsRegConf struct { DnsRegMethod *DnsRegMethod `protobuf:"varint,1,req,name=dns_reg_method,json=dnsRegMethod,enum=proto.DnsRegMethod" json:"dns_reg_method,omitempty"` Target *string `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` Domain *string `protobuf:"bytes,3,req,name=domain" json:"domain,omitempty"` Pubkey []byte `protobuf:"bytes,4,opt,name=pubkey" json:"pubkey,omitempty"` UtlsDistribution *string `protobuf:"bytes,5,opt,name=utls_distribution,json=utlsDistribution" json:"utls_distribution,omitempty"` StunServer *string `protobuf:"bytes,6,opt,name=stun_server,json=stunServer" json:"stun_server,omitempty"` // contains filtered or unexported fields }
Configuration for DNS registrar
func (*DnsRegConf) Descriptor
deprecated
func (*DnsRegConf) Descriptor() ([]byte, []int)
Deprecated: Use DnsRegConf.ProtoReflect.Descriptor instead.
func (*DnsRegConf) GetDnsRegMethod ¶
func (x *DnsRegConf) GetDnsRegMethod() DnsRegMethod
func (*DnsRegConf) GetDomain ¶
func (x *DnsRegConf) GetDomain() string
func (*DnsRegConf) GetPubkey ¶
func (x *DnsRegConf) GetPubkey() []byte
func (*DnsRegConf) GetStunServer ¶
func (x *DnsRegConf) GetStunServer() string
func (*DnsRegConf) GetTarget ¶
func (x *DnsRegConf) GetTarget() string
func (*DnsRegConf) GetUtlsDistribution ¶
func (x *DnsRegConf) GetUtlsDistribution() string
func (*DnsRegConf) ProtoMessage ¶
func (*DnsRegConf) ProtoMessage()
func (*DnsRegConf) ProtoReflect ¶
func (x *DnsRegConf) ProtoReflect() protoreflect.Message
func (*DnsRegConf) Reset ¶
func (x *DnsRegConf) Reset()
func (*DnsRegConf) String ¶
func (x *DnsRegConf) String() string
type DnsRegMethod ¶
type DnsRegMethod int32
const ( DnsRegMethod_UDP DnsRegMethod = 1 DnsRegMethod_DOT DnsRegMethod = 2 DnsRegMethod_DOH DnsRegMethod = 3 )
func (DnsRegMethod) Descriptor ¶
func (DnsRegMethod) Descriptor() protoreflect.EnumDescriptor
func (DnsRegMethod) Enum ¶
func (x DnsRegMethod) Enum() *DnsRegMethod
func (DnsRegMethod) EnumDescriptor
deprecated
func (DnsRegMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use DnsRegMethod.Descriptor instead.
func (DnsRegMethod) Number ¶
func (x DnsRegMethod) Number() protoreflect.EnumNumber
func (DnsRegMethod) String ¶
func (x DnsRegMethod) String() string
func (DnsRegMethod) Type ¶
func (DnsRegMethod) Type() protoreflect.EnumType
func (*DnsRegMethod) UnmarshalJSON
deprecated
func (x *DnsRegMethod) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type DnsResponse ¶
type DnsResponse struct { Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` ClientconfOutdated *bool `protobuf:"varint,2,opt,name=clientconf_outdated,json=clientconfOutdated" json:"clientconf_outdated,omitempty"` BidirectionalResponse *RegistrationResponse `protobuf:"bytes,3,opt,name=bidirectional_response,json=bidirectionalResponse" json:"bidirectional_response,omitempty"` // contains filtered or unexported fields }
response from dns
func (*DnsResponse) Descriptor
deprecated
func (*DnsResponse) Descriptor() ([]byte, []int)
Deprecated: Use DnsResponse.ProtoReflect.Descriptor instead.
func (*DnsResponse) GetBidirectionalResponse ¶
func (x *DnsResponse) GetBidirectionalResponse() *RegistrationResponse
func (*DnsResponse) GetClientconfOutdated ¶
func (x *DnsResponse) GetClientconfOutdated() bool
func (*DnsResponse) GetSuccess ¶
func (x *DnsResponse) GetSuccess() bool
func (*DnsResponse) ProtoMessage ¶
func (*DnsResponse) ProtoMessage()
func (*DnsResponse) ProtoReflect ¶
func (x *DnsResponse) ProtoReflect() protoreflect.Message
func (*DnsResponse) Reset ¶
func (x *DnsResponse) Reset()
func (*DnsResponse) String ¶
func (x *DnsResponse) String() string
type ErrorReasonS2C ¶
type ErrorReasonS2C int32
Should accompany all S2C_ERROR messages.
const ( ErrorReasonS2C_NO_ERROR ErrorReasonS2C = 0 ErrorReasonS2C_COVERT_STREAM ErrorReasonS2C = 1 // Squid TCP connection broke ErrorReasonS2C_CLIENT_REPORTED ErrorReasonS2C = 2 // You told me something was wrong, client ErrorReasonS2C_CLIENT_PROTOCOL ErrorReasonS2C = 3 // You messed up, client (e.g. sent a bad protobuf) ErrorReasonS2C_STATION_INTERNAL ErrorReasonS2C = 4 // I broke ErrorReasonS2C_DECOY_OVERLOAD ErrorReasonS2C = 5 // Everything's fine, but don't use this decoy right now ErrorReasonS2C_CLIENT_STREAM ErrorReasonS2C = 100 // My stream to you broke. (This is impossible to send) ErrorReasonS2C_CLIENT_TIMEOUT ErrorReasonS2C = 101 // You never came back. (This is impossible to send) )
func (ErrorReasonS2C) Descriptor ¶
func (ErrorReasonS2C) Descriptor() protoreflect.EnumDescriptor
func (ErrorReasonS2C) Enum ¶
func (x ErrorReasonS2C) Enum() *ErrorReasonS2C
func (ErrorReasonS2C) EnumDescriptor
deprecated
func (ErrorReasonS2C) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReasonS2C.Descriptor instead.
func (ErrorReasonS2C) Number ¶
func (x ErrorReasonS2C) Number() protoreflect.EnumNumber
func (ErrorReasonS2C) String ¶
func (x ErrorReasonS2C) String() string
func (ErrorReasonS2C) Type ¶
func (ErrorReasonS2C) Type() protoreflect.EnumType
func (*ErrorReasonS2C) UnmarshalJSON
deprecated
func (x *ErrorReasonS2C) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type GenericTransportParams ¶
type GenericTransportParams struct { // Indicates whether the client has elected to use destination port randomization. Should be // checked against selected transport to ensure that destination port randomization is // supported. RandomizeDstPort *bool `protobuf:"varint,13,opt,name=randomize_dst_port,json=randomizeDstPort" json:"randomize_dst_port,omitempty"` // contains filtered or unexported fields }
func (*GenericTransportParams) Descriptor
deprecated
func (*GenericTransportParams) Descriptor() ([]byte, []int)
Deprecated: Use GenericTransportParams.ProtoReflect.Descriptor instead.
func (*GenericTransportParams) GetRandomizeDstPort ¶
func (x *GenericTransportParams) GetRandomizeDstPort() bool
func (*GenericTransportParams) ProtoMessage ¶
func (*GenericTransportParams) ProtoMessage()
func (*GenericTransportParams) ProtoReflect ¶
func (x *GenericTransportParams) ProtoReflect() protoreflect.Message
func (*GenericTransportParams) Reset ¶
func (x *GenericTransportParams) Reset()
func (*GenericTransportParams) String ¶
func (x *GenericTransportParams) String() string
type IPProto ¶
type IPProto int32
func (IPProto) Descriptor ¶
func (IPProto) Descriptor() protoreflect.EnumDescriptor
func (IPProto) EnumDescriptor
deprecated
func (IPProto) Number ¶
func (x IPProto) Number() protoreflect.EnumNumber
func (IPProto) Type ¶
func (IPProto) Type() protoreflect.EnumType
func (*IPProto) UnmarshalJSON
deprecated
type KeyType ¶
type KeyType int32
func (KeyType) Descriptor ¶
func (KeyType) Descriptor() protoreflect.EnumDescriptor
func (KeyType) EnumDescriptor
deprecated
func (KeyType) Number ¶
func (x KeyType) Number() protoreflect.EnumNumber
func (KeyType) Type ¶
func (KeyType) Type() protoreflect.EnumType
func (*KeyType) UnmarshalJSON
deprecated
type PhantomSubnets ¶
type PhantomSubnets struct { Weight *uint32 `protobuf:"varint,1,opt,name=weight" json:"weight,omitempty"` Subnets []string `protobuf:"bytes,2,rep,name=subnets" json:"subnets,omitempty"` RandomizeDstPort *bool `protobuf:"varint,3,opt,name=randomize_dst_port,json=randomizeDstPort" json:"randomize_dst_port,omitempty"` // contains filtered or unexported fields }
func (*PhantomSubnets) Descriptor
deprecated
func (*PhantomSubnets) Descriptor() ([]byte, []int)
Deprecated: Use PhantomSubnets.ProtoReflect.Descriptor instead.
func (*PhantomSubnets) GetRandomizeDstPort ¶ added in v0.6.5
func (x *PhantomSubnets) GetRandomizeDstPort() bool
func (*PhantomSubnets) GetSubnets ¶
func (x *PhantomSubnets) GetSubnets() []string
func (*PhantomSubnets) GetWeight ¶
func (x *PhantomSubnets) GetWeight() uint32
func (*PhantomSubnets) ProtoMessage ¶
func (*PhantomSubnets) ProtoMessage()
func (*PhantomSubnets) ProtoReflect ¶
func (x *PhantomSubnets) ProtoReflect() protoreflect.Message
func (*PhantomSubnets) Reset ¶
func (x *PhantomSubnets) Reset()
func (*PhantomSubnets) String ¶
func (x *PhantomSubnets) String() string
type PhantomSubnetsList ¶
type PhantomSubnetsList struct { WeightedSubnets []*PhantomSubnets `protobuf:"bytes,1,rep,name=weighted_subnets,json=weightedSubnets" json:"weighted_subnets,omitempty"` // contains filtered or unexported fields }
func (*PhantomSubnetsList) Descriptor
deprecated
func (*PhantomSubnetsList) Descriptor() ([]byte, []int)
Deprecated: Use PhantomSubnetsList.ProtoReflect.Descriptor instead.
func (*PhantomSubnetsList) GetWeightedSubnets ¶
func (x *PhantomSubnetsList) GetWeightedSubnets() []*PhantomSubnets
func (*PhantomSubnetsList) ProtoMessage ¶
func (*PhantomSubnetsList) ProtoMessage()
func (*PhantomSubnetsList) ProtoReflect ¶
func (x *PhantomSubnetsList) ProtoReflect() protoreflect.Message
func (*PhantomSubnetsList) Reset ¶
func (x *PhantomSubnetsList) Reset()
func (*PhantomSubnetsList) String ¶
func (x *PhantomSubnetsList) String() string
type PrefixTransportParams ¶
type PrefixTransportParams struct { // Prefix Identifier PrefixId *int32 `protobuf:"varint,1,opt,name=prefix_id,json=prefixId" json:"prefix_id,omitempty"` // Prefix bytes (optional - usually sent from station to client as override if allowed by C2S) // as the station cannot take this into account when attempting to identify a connection. Prefix []byte `protobuf:"bytes,2,opt,name=prefix" json:"prefix,omitempty"` CustomFlushPolicy *int32 `protobuf:"varint,3,opt,name=custom_flush_policy,json=customFlushPolicy" json:"custom_flush_policy,omitempty"` // Indicates whether the client has elected to use destination port randomization. Should be // checked against selected transport to ensure that destination port randomization is // supported. RandomizeDstPort *bool `protobuf:"varint,13,opt,name=randomize_dst_port,json=randomizeDstPort" json:"randomize_dst_port,omitempty"` // contains filtered or unexported fields }
func (*PrefixTransportParams) Descriptor
deprecated
func (*PrefixTransportParams) Descriptor() ([]byte, []int)
Deprecated: Use PrefixTransportParams.ProtoReflect.Descriptor instead.
func (*PrefixTransportParams) GetCustomFlushPolicy ¶ added in v0.6.7
func (x *PrefixTransportParams) GetCustomFlushPolicy() int32
func (*PrefixTransportParams) GetPrefix ¶
func (x *PrefixTransportParams) GetPrefix() []byte
func (*PrefixTransportParams) GetPrefixId ¶
func (x *PrefixTransportParams) GetPrefixId() int32
func (*PrefixTransportParams) GetRandomizeDstPort ¶
func (x *PrefixTransportParams) GetRandomizeDstPort() bool
func (*PrefixTransportParams) ProtoMessage ¶
func (*PrefixTransportParams) ProtoMessage()
func (*PrefixTransportParams) ProtoReflect ¶
func (x *PrefixTransportParams) ProtoReflect() protoreflect.Message
func (*PrefixTransportParams) Reset ¶
func (x *PrefixTransportParams) Reset()
func (*PrefixTransportParams) String ¶
func (x *PrefixTransportParams) String() string
type PubKey ¶
type PubKey struct { // A public key, as used by the station. Key []byte `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Type *KeyType `protobuf:"varint,2,opt,name=type,enum=proto.KeyType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*PubKey) Descriptor
deprecated
func (*PubKey) ProtoMessage ¶
func (*PubKey) ProtoMessage()
func (*PubKey) ProtoReflect ¶
func (x *PubKey) ProtoReflect() protoreflect.Message
type RegistrationFlags ¶
type RegistrationFlags struct { UploadOnly *bool `protobuf:"varint,1,opt,name=upload_only,json=uploadOnly" json:"upload_only,omitempty"` DarkDecoy *bool `protobuf:"varint,2,opt,name=dark_decoy,json=darkDecoy" json:"dark_decoy,omitempty"` ProxyHeader *bool `protobuf:"varint,3,opt,name=proxy_header,json=proxyHeader" json:"proxy_header,omitempty"` Use_TIL *bool `protobuf:"varint,4,opt,name=use_TIL,json=useTIL" json:"use_TIL,omitempty"` Prescanned *bool `protobuf:"varint,5,opt,name=prescanned" json:"prescanned,omitempty"` // contains filtered or unexported fields }
func (*RegistrationFlags) Descriptor
deprecated
func (*RegistrationFlags) Descriptor() ([]byte, []int)
Deprecated: Use RegistrationFlags.ProtoReflect.Descriptor instead.
func (*RegistrationFlags) GetDarkDecoy ¶
func (x *RegistrationFlags) GetDarkDecoy() bool
func (*RegistrationFlags) GetPrescanned ¶
func (x *RegistrationFlags) GetPrescanned() bool
func (*RegistrationFlags) GetProxyHeader ¶
func (x *RegistrationFlags) GetProxyHeader() bool
func (*RegistrationFlags) GetUploadOnly ¶
func (x *RegistrationFlags) GetUploadOnly() bool
func (*RegistrationFlags) GetUse_TIL ¶
func (x *RegistrationFlags) GetUse_TIL() bool
func (*RegistrationFlags) ProtoMessage ¶
func (*RegistrationFlags) ProtoMessage()
func (*RegistrationFlags) ProtoReflect ¶
func (x *RegistrationFlags) ProtoReflect() protoreflect.Message
func (*RegistrationFlags) Reset ¶
func (x *RegistrationFlags) Reset()
func (*RegistrationFlags) String ¶
func (x *RegistrationFlags) String() string
type RegistrationResponse ¶
type RegistrationResponse struct { Ipv4Addr *uint32 `protobuf:"fixed32,1,opt,name=ipv4addr" json:"ipv4addr,omitempty"` // The 128-bit ipv6 address, in network byte order Ipv6Addr []byte `protobuf:"bytes,2,opt,name=ipv6addr" json:"ipv6addr,omitempty"` // Respond with randomized port DstPort *uint32 `protobuf:"varint,3,opt,name=dst_port,json=dstPort" json:"dst_port,omitempty"` // Future: station provides client with secret, want chanel present // Leave null for now ServerRandom []byte `protobuf:"bytes,4,opt,name=serverRandom" json:"serverRandom,omitempty"` // If registration wrong, populate this error string Error *string `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"` // ClientConf field (optional) ClientConf *ClientConf `protobuf:"bytes,6,opt,name=clientConf" json:"clientConf,omitempty"` // Transport Params to if `allow_registrar_overrides` is set. TransportParams *anypb.Any `protobuf:"bytes,10,opt,name=transport_params,json=transportParams" json:"transport_params,omitempty"` // PhantomsSupportPortRand is a flag that indicates whether the selected phantoms are able to // handle phantom connections to randomized ports. PhantomsSupportPortRand *bool `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
Adding message response from Station to Client for bidirectional API
func (*RegistrationResponse) Descriptor
deprecated
func (*RegistrationResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegistrationResponse.ProtoReflect.Descriptor instead.
func (*RegistrationResponse) GetClientConf ¶
func (x *RegistrationResponse) GetClientConf() *ClientConf
func (*RegistrationResponse) GetDstPort ¶
func (x *RegistrationResponse) GetDstPort() uint32
func (*RegistrationResponse) GetError ¶
func (x *RegistrationResponse) GetError() string
func (*RegistrationResponse) GetIpv4Addr ¶
func (x *RegistrationResponse) GetIpv4Addr() uint32
func (*RegistrationResponse) GetIpv6Addr ¶
func (x *RegistrationResponse) GetIpv6Addr() []byte
func (*RegistrationResponse) GetPhantomsSupportPortRand ¶ added in v0.7.5
func (x *RegistrationResponse) GetPhantomsSupportPortRand() bool
func (*RegistrationResponse) GetServerRandom ¶
func (x *RegistrationResponse) GetServerRandom() []byte
func (*RegistrationResponse) GetTransportParams ¶
func (x *RegistrationResponse) GetTransportParams() *anypb.Any
func (*RegistrationResponse) ProtoMessage ¶
func (*RegistrationResponse) ProtoMessage()
func (*RegistrationResponse) ProtoReflect ¶
func (x *RegistrationResponse) ProtoReflect() protoreflect.Message
func (*RegistrationResponse) Reset ¶
func (x *RegistrationResponse) Reset()
func (*RegistrationResponse) String ¶
func (x *RegistrationResponse) String() string
type RegistrationSource ¶
type RegistrationSource int32
const ( RegistrationSource_Unspecified RegistrationSource = 0 RegistrationSource_Detector RegistrationSource = 1 RegistrationSource_API RegistrationSource = 2 RegistrationSource_DetectorPrescan RegistrationSource = 3 RegistrationSource_BidirectionalAPI RegistrationSource = 4 RegistrationSource_DNS RegistrationSource = 5 RegistrationSource_BidirectionalDNS RegistrationSource = 6 )
func (RegistrationSource) Descriptor ¶
func (RegistrationSource) Descriptor() protoreflect.EnumDescriptor
func (RegistrationSource) Enum ¶
func (x RegistrationSource) Enum() *RegistrationSource
func (RegistrationSource) EnumDescriptor
deprecated
func (RegistrationSource) EnumDescriptor() ([]byte, []int)
Deprecated: Use RegistrationSource.Descriptor instead.
func (RegistrationSource) Number ¶
func (x RegistrationSource) Number() protoreflect.EnumNumber
func (RegistrationSource) String ¶
func (x RegistrationSource) String() string
func (RegistrationSource) Type ¶
func (RegistrationSource) Type() protoreflect.EnumType
func (*RegistrationSource) UnmarshalJSON
deprecated
func (x *RegistrationSource) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type S2C_Transition ¶
type S2C_Transition int32
State transitions of the server
const ( S2C_Transition_S2C_NO_CHANGE S2C_Transition = 0 S2C_Transition_S2C_SESSION_INIT S2C_Transition = 1 // connected to squid S2C_Transition_S2C_SESSION_COVERT_INIT S2C_Transition = 11 // connected to covert host S2C_Transition_S2C_CONFIRM_RECONNECT S2C_Transition = 2 S2C_Transition_S2C_SESSION_CLOSE S2C_Transition = 3 // TODO should probably also allow EXPECT_RECONNECT here, for DittoTap S2C_Transition_S2C_ERROR S2C_Transition = 255 )
func (S2C_Transition) Descriptor ¶
func (S2C_Transition) Descriptor() protoreflect.EnumDescriptor
func (S2C_Transition) Enum ¶
func (x S2C_Transition) Enum() *S2C_Transition
func (S2C_Transition) EnumDescriptor
deprecated
func (S2C_Transition) EnumDescriptor() ([]byte, []int)
Deprecated: Use S2C_Transition.Descriptor instead.
func (S2C_Transition) Number ¶
func (x S2C_Transition) Number() protoreflect.EnumNumber
func (S2C_Transition) String ¶
func (x S2C_Transition) String() string
func (S2C_Transition) Type ¶
func (S2C_Transition) Type() protoreflect.EnumType
func (*S2C_Transition) UnmarshalJSON
deprecated
func (x *S2C_Transition) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SessionStats ¶
type SessionStats struct { FailedDecoysAmount *uint32 `protobuf:"varint,20,opt,name=failed_decoys_amount,json=failedDecoysAmount" json:"failed_decoys_amount,omitempty"` // how many decoys were tried before success // Applicable to whole session: TotalTimeToConnect *uint32 `protobuf:"varint,31,opt,name=total_time_to_connect,json=totalTimeToConnect" json:"total_time_to_connect,omitempty"` // includes failed attempts // Last (i.e. successful) decoy: RttToStation *uint32 `protobuf:"varint,33,opt,name=rtt_to_station,json=rttToStation" json:"rtt_to_station,omitempty"` // measured during initial handshake TlsToDecoy *uint32 `protobuf:"varint,38,opt,name=tls_to_decoy,json=tlsToDecoy" json:"tls_to_decoy,omitempty"` // includes tcp to decoy TcpToDecoy *uint32 `protobuf:"varint,39,opt,name=tcp_to_decoy,json=tcpToDecoy" json:"tcp_to_decoy,omitempty"` // measured when establishing tcp connection to decot // contains filtered or unexported fields }
func (*SessionStats) Descriptor
deprecated
func (*SessionStats) Descriptor() ([]byte, []int)
Deprecated: Use SessionStats.ProtoReflect.Descriptor instead.
func (*SessionStats) GetFailedDecoysAmount ¶
func (x *SessionStats) GetFailedDecoysAmount() uint32
func (*SessionStats) GetRttToStation ¶
func (x *SessionStats) GetRttToStation() uint32
func (*SessionStats) GetTcpToDecoy ¶
func (x *SessionStats) GetTcpToDecoy() uint32
func (*SessionStats) GetTlsToDecoy ¶
func (x *SessionStats) GetTlsToDecoy() uint32
func (*SessionStats) GetTotalTimeToConnect ¶
func (x *SessionStats) GetTotalTimeToConnect() uint32
func (*SessionStats) ProtoMessage ¶
func (*SessionStats) ProtoMessage()
func (*SessionStats) ProtoReflect ¶
func (x *SessionStats) ProtoReflect() protoreflect.Message
func (*SessionStats) Reset ¶
func (x *SessionStats) Reset()
func (*SessionStats) String ¶
func (x *SessionStats) String() string
type StationOperations ¶
type StationOperations int32
const ( StationOperations_Unknown StationOperations = 0 StationOperations_New StationOperations = 1 StationOperations_Update StationOperations = 2 StationOperations_Clear StationOperations = 3 )
func (StationOperations) Descriptor ¶
func (StationOperations) Descriptor() protoreflect.EnumDescriptor
func (StationOperations) Enum ¶
func (x StationOperations) Enum() *StationOperations
func (StationOperations) EnumDescriptor
deprecated
func (StationOperations) EnumDescriptor() ([]byte, []int)
Deprecated: Use StationOperations.Descriptor instead.
func (StationOperations) Number ¶
func (x StationOperations) Number() protoreflect.EnumNumber
func (StationOperations) String ¶
func (x StationOperations) String() string
func (StationOperations) Type ¶
func (StationOperations) Type() protoreflect.EnumType
func (*StationOperations) UnmarshalJSON
deprecated
func (x *StationOperations) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type StationToClient ¶
type StationToClient struct { // Should accompany (at least) SESSION_INIT and CONFIRM_RECONNECT. ProtocolVersion *uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion" json:"protocol_version,omitempty"` // There might be a state transition. May be absent; absence should be // treated identically to NO_CHANGE. StateTransition *S2C_Transition `` /* 126-byte string literal not displayed */ // The station can send client config info piggybacked // on any message, as it sees fit ConfigInfo *ClientConf `protobuf:"bytes,3,opt,name=config_info,json=configInfo" json:"config_info,omitempty"` // If state_transition == S2C_ERROR, this field is the explanation. ErrReason *ErrorReasonS2C `protobuf:"varint,4,opt,name=err_reason,json=errReason,enum=proto.ErrorReasonS2C" json:"err_reason,omitempty"` // Signals client to stop connecting for following amount of seconds TmpBackoff *uint32 `protobuf:"varint,5,opt,name=tmp_backoff,json=tmpBackoff" json:"tmp_backoff,omitempty"` // Sent in SESSION_INIT, identifies the station that picked up StationId *string `protobuf:"bytes,6,opt,name=station_id,json=stationId" json:"station_id,omitempty"` // Random-sized junk to defeat packet size fingerprinting. Padding []byte `protobuf:"bytes,100,opt,name=padding" json:"padding,omitempty"` // contains filtered or unexported fields }
func (*StationToClient) Descriptor
deprecated
func (*StationToClient) Descriptor() ([]byte, []int)
Deprecated: Use StationToClient.ProtoReflect.Descriptor instead.
func (*StationToClient) GetConfigInfo ¶
func (x *StationToClient) GetConfigInfo() *ClientConf
func (*StationToClient) GetErrReason ¶
func (x *StationToClient) GetErrReason() ErrorReasonS2C
func (*StationToClient) GetPadding ¶
func (x *StationToClient) GetPadding() []byte
func (*StationToClient) GetProtocolVersion ¶
func (x *StationToClient) GetProtocolVersion() uint32
func (*StationToClient) GetStateTransition ¶
func (x *StationToClient) GetStateTransition() S2C_Transition
func (*StationToClient) GetStationId ¶
func (x *StationToClient) GetStationId() string
func (*StationToClient) GetTmpBackoff ¶
func (x *StationToClient) GetTmpBackoff() uint32
func (*StationToClient) ProtoMessage ¶
func (*StationToClient) ProtoMessage()
func (*StationToClient) ProtoReflect ¶
func (x *StationToClient) ProtoReflect() protoreflect.Message
func (*StationToClient) Reset ¶
func (x *StationToClient) Reset()
func (*StationToClient) String ¶
func (x *StationToClient) String() string
type StationToDetector ¶
type StationToDetector struct { PhantomIp *string `protobuf:"bytes,1,opt,name=phantom_ip,json=phantomIp" json:"phantom_ip,omitempty"` ClientIp *string `protobuf:"bytes,2,opt,name=client_ip,json=clientIp" json:"client_ip,omitempty"` TimeoutNs *uint64 `protobuf:"varint,3,opt,name=timeout_ns,json=timeoutNs" json:"timeout_ns,omitempty"` Operation *StationOperations `protobuf:"varint,4,opt,name=operation,enum=proto.StationOperations" json:"operation,omitempty"` DstPort *uint32 `protobuf:"varint,10,opt,name=dst_port,json=dstPort" json:"dst_port,omitempty"` SrcPort *uint32 `protobuf:"varint,11,opt,name=src_port,json=srcPort" json:"src_port,omitempty"` Proto *IPProto `protobuf:"varint,12,opt,name=proto,enum=proto.IPProto" json:"proto,omitempty"` // contains filtered or unexported fields }
func (*StationToDetector) Descriptor
deprecated
func (*StationToDetector) Descriptor() ([]byte, []int)
Deprecated: Use StationToDetector.ProtoReflect.Descriptor instead.
func (*StationToDetector) GetClientIp ¶
func (x *StationToDetector) GetClientIp() string
func (*StationToDetector) GetDstPort ¶
func (x *StationToDetector) GetDstPort() uint32
func (*StationToDetector) GetOperation ¶
func (x *StationToDetector) GetOperation() StationOperations
func (*StationToDetector) GetPhantomIp ¶
func (x *StationToDetector) GetPhantomIp() string
func (*StationToDetector) GetProto ¶
func (x *StationToDetector) GetProto() IPProto
func (*StationToDetector) GetSrcPort ¶
func (x *StationToDetector) GetSrcPort() uint32
func (*StationToDetector) GetTimeoutNs ¶
func (x *StationToDetector) GetTimeoutNs() uint64
func (*StationToDetector) ProtoMessage ¶
func (*StationToDetector) ProtoMessage()
func (*StationToDetector) ProtoReflect ¶
func (x *StationToDetector) ProtoReflect() protoreflect.Message
func (*StationToDetector) Reset ¶
func (x *StationToDetector) Reset()
func (*StationToDetector) String ¶
func (x *StationToDetector) String() string
type TLSDecoySpec ¶
type TLSDecoySpec struct { // The hostname/SNI to use for this host // // The hostname is the only required field, although other // fields are expected to be present in most cases. Hostname *string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"` // The 32-bit ipv4 address, in network byte order // // If the IPv4 address is absent, then it may be resolved via // DNS by the client, or the client may discard this decoy spec // if local DNS is untrusted, or the service may be multihomed. Ipv4Addr *uint32 `protobuf:"fixed32,2,opt,name=ipv4addr" json:"ipv4addr,omitempty"` // The 128-bit ipv6 address, in network byte order Ipv6Addr []byte `protobuf:"bytes,6,opt,name=ipv6addr" json:"ipv6addr,omitempty"` // The Tapdance station public key to use when contacting this // decoy // // If omitted, the default station public key (if any) is used. Pubkey *PubKey `protobuf:"bytes,3,opt,name=pubkey" json:"pubkey,omitempty"` // The maximum duration, in milliseconds, to maintain an open // connection to this decoy (because the decoy may close the // connection itself after this length of time) // // If omitted, a default of 30,000 milliseconds is assumed. Timeout *uint32 `protobuf:"varint,4,opt,name=timeout" json:"timeout,omitempty"` // The maximum TCP window size to attempt to use for this decoy. // // If omitted, a default of 15360 is assumed. // // TODO: the default is based on the current heuristic of only // using decoys that permit windows of 15KB or larger. If this // heuristic changes, then this default doesn't make sense. Tcpwin *uint32 `protobuf:"varint,5,opt,name=tcpwin" json:"tcpwin,omitempty"` // contains filtered or unexported fields }
func InitTLSDecoySpec ¶
func InitTLSDecoySpec(ip string, sni string) *TLSDecoySpec
InitTLSDecoySpec creates TLSDecoySpec from ip address and server name. Other feilds, such as Pubkey, Timeout and Tcpwin are left unset.
func (*TLSDecoySpec) Descriptor
deprecated
func (*TLSDecoySpec) Descriptor() ([]byte, []int)
Deprecated: Use TLSDecoySpec.ProtoReflect.Descriptor instead.
func (*TLSDecoySpec) GetHostname ¶
func (x *TLSDecoySpec) GetHostname() string
func (*TLSDecoySpec) GetIpAddrStr ¶
func (ds *TLSDecoySpec) GetIpAddrStr() string
GetIpAddrStr returns IP address of TLSDecoySpec as a string.
func (*TLSDecoySpec) GetIpv4Addr ¶
func (x *TLSDecoySpec) GetIpv4Addr() uint32
func (*TLSDecoySpec) GetIpv6Addr ¶
func (x *TLSDecoySpec) GetIpv6Addr() []byte
func (*TLSDecoySpec) GetPubkey ¶
func (x *TLSDecoySpec) GetPubkey() *PubKey
func (*TLSDecoySpec) GetTcpwin ¶
func (x *TLSDecoySpec) GetTcpwin() uint32
func (*TLSDecoySpec) GetTimeout ¶
func (x *TLSDecoySpec) GetTimeout() uint32
func (*TLSDecoySpec) ProtoMessage ¶
func (*TLSDecoySpec) ProtoMessage()
func (*TLSDecoySpec) ProtoReflect ¶
func (x *TLSDecoySpec) ProtoReflect() protoreflect.Message
func (*TLSDecoySpec) Reset ¶
func (x *TLSDecoySpec) Reset()
func (*TLSDecoySpec) String ¶
func (x *TLSDecoySpec) String() string
type TransportType ¶
type TransportType int32
const ( TransportType_Null TransportType = 0 TransportType_Min TransportType = 1 // Send a 32-byte HMAC id to let the station distinguish registrations to same host TransportType_Obfs4 TransportType = 2 TransportType_DTLS TransportType = 3 // UDP transport: DTLS TransportType_Prefix TransportType = 4 // dynamic prefix transport (and updated Min) TransportType_uTLS TransportType = 5 // uTLS based transport TransportType_Format TransportType = 6 // Formatting transport - format first, format all TransportType_WASM TransportType = 7 // WebAssembly TransportType_FTE TransportType = 8 // Format transforming encryption TransportType_Quic TransportType = 9 // quic transport? TransportType_Webrtc TransportType = 99 // UDP transport: WebRTC DataChannel )
func (TransportType) Descriptor ¶
func (TransportType) Descriptor() protoreflect.EnumDescriptor
func (TransportType) Enum ¶
func (x TransportType) Enum() *TransportType
func (TransportType) EnumDescriptor
deprecated
func (TransportType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransportType.Descriptor instead.
func (TransportType) Number ¶
func (x TransportType) Number() protoreflect.EnumNumber
func (TransportType) String ¶
func (x TransportType) String() string
func (TransportType) Type ¶
func (TransportType) Type() protoreflect.EnumType
func (*TransportType) UnmarshalJSON
deprecated
func (x *TransportType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type WebRTCICECandidate ¶
type WebRTCICECandidate struct { // IP is represented in its 16-byte form IpUpper *uint64 `protobuf:"varint,1,req,name=ip_upper,json=ipUpper" json:"ip_upper,omitempty"` IpLower *uint64 `protobuf:"varint,2,req,name=ip_lower,json=ipLower" json:"ip_lower,omitempty"` // Composed info includes port, tcptype (unset if not tcp), candidate type (host, srflx, prflx), protocol (TCP/UDP), and component (RTP/RTCP) ComposedInfo *uint32 `protobuf:"varint,3,req,name=composed_info,json=composedInfo" json:"composed_info,omitempty"` // contains filtered or unexported fields }
Deflated ICE Candidate by seed2sdp package
func (*WebRTCICECandidate) Descriptor
deprecated
func (*WebRTCICECandidate) Descriptor() ([]byte, []int)
Deprecated: Use WebRTCICECandidate.ProtoReflect.Descriptor instead.
func (*WebRTCICECandidate) GetComposedInfo ¶
func (x *WebRTCICECandidate) GetComposedInfo() uint32
func (*WebRTCICECandidate) GetIpLower ¶
func (x *WebRTCICECandidate) GetIpLower() uint64
func (*WebRTCICECandidate) GetIpUpper ¶
func (x *WebRTCICECandidate) GetIpUpper() uint64
func (*WebRTCICECandidate) ProtoMessage ¶
func (*WebRTCICECandidate) ProtoMessage()
func (*WebRTCICECandidate) ProtoReflect ¶
func (x *WebRTCICECandidate) ProtoReflect() protoreflect.Message
func (*WebRTCICECandidate) Reset ¶
func (x *WebRTCICECandidate) Reset()
func (*WebRTCICECandidate) String ¶
func (x *WebRTCICECandidate) String() string
type WebRTCSDP ¶
type WebRTCSDP struct { Type *uint32 `protobuf:"varint,1,req,name=type" json:"type,omitempty"` Candidates []*WebRTCICECandidate `protobuf:"bytes,2,rep,name=candidates" json:"candidates,omitempty"` // there could be multiple candidates // contains filtered or unexported fields }
Deflated SDP for WebRTC by seed2sdp package
func (*WebRTCSDP) Descriptor
deprecated
func (*WebRTCSDP) GetCandidates ¶
func (x *WebRTCSDP) GetCandidates() []*WebRTCICECandidate
func (*WebRTCSDP) ProtoMessage ¶
func (*WebRTCSDP) ProtoMessage()
func (*WebRTCSDP) ProtoReflect ¶
func (x *WebRTCSDP) ProtoReflect() protoreflect.Message
type WebRTCSignal ¶
type WebRTCSignal struct { Seed *string `protobuf:"bytes,1,req,name=seed" json:"seed,omitempty"` Sdp *WebRTCSDP `protobuf:"bytes,2,req,name=sdp" json:"sdp,omitempty"` // contains filtered or unexported fields }
WebRTCSignal includes a deflated SDP and a seed
func (*WebRTCSignal) Descriptor
deprecated
func (*WebRTCSignal) Descriptor() ([]byte, []int)
Deprecated: Use WebRTCSignal.ProtoReflect.Descriptor instead.
func (*WebRTCSignal) GetSdp ¶
func (x *WebRTCSignal) GetSdp() *WebRTCSDP
func (*WebRTCSignal) GetSeed ¶
func (x *WebRTCSignal) GetSeed() string
func (*WebRTCSignal) ProtoMessage ¶
func (*WebRTCSignal) ProtoMessage()
func (*WebRTCSignal) ProtoReflect ¶
func (x *WebRTCSignal) ProtoReflect() protoreflect.Message
func (*WebRTCSignal) Reset ¶
func (x *WebRTCSignal) Reset()
func (*WebRTCSignal) String ¶
func (x *WebRTCSignal) String() string