Documentation
¶
Index ¶
- Variables
- type Authenticate
- func (*Authenticate) Descriptor() ([]byte, []int)deprecated
- func (x *Authenticate) GetBuildVersion() string
- func (x *Authenticate) GetReconnectToken() []byte
- func (x *Authenticate) GetToken() string
- func (*Authenticate) ProtoMessage()
- func (x *Authenticate) ProtoReflect() protoreflect.Message
- func (x *Authenticate) Reset()
- func (x *Authenticate) String() string
- type AuthenticateResp
- func (*AuthenticateResp) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResp) GetError() *pb.Error
- func (x *AuthenticateResp) GetPublic() *pb.AddrPort
- func (x *AuthenticateResp) GetReconnectToken() []byte
- func (*AuthenticateResp) ProtoMessage()
- func (x *AuthenticateResp) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResp) Reset()
- func (x *AuthenticateResp) String() string
- type ClientPeer
- func (*ClientPeer) Descriptor() ([]byte, []int)deprecated
- func (x *ClientPeer) GetClientCertificate() []byte
- func (x *ClientPeer) GetDirect() *DirectRoute
- func (x *ClientPeer) GetDirects() []*pb.AddrPort
- func (x *ClientPeer) GetRelays() []*pb.HostPort
- func (x *ClientPeer) GetServerCertificate() []byte
- func (*ClientPeer) ProtoMessage()
- func (x *ClientPeer) ProtoReflect() protoreflect.Message
- func (x *ClientPeer) Reset()
- func (x *ClientPeer) String() string
- type DirectRoute
- func (*DirectRoute) Descriptor() ([]byte, []int)deprecated
- func (x *DirectRoute) GetAddresses() []*pb.AddrPort
- func (x *DirectRoute) GetClientCertificate() []byte
- func (x *DirectRoute) GetServerCertificate() []byte
- func (*DirectRoute) ProtoMessage()
- func (x *DirectRoute) ProtoReflect() protoreflect.Message
- func (x *DirectRoute) Reset()
- func (x *DirectRoute) String() string
- type Relay
- type Request
- type Request_Announce
- func (*Request_Announce) Descriptor() ([]byte, []int)deprecated
- func (x *Request_Announce) GetForward() *pb.Forward
- func (x *Request_Announce) GetPeer() *ClientPeer
- func (x *Request_Announce) GetRole() pb.Role
- func (*Request_Announce) ProtoMessage()
- func (x *Request_Announce) ProtoReflect() protoreflect.Message
- func (x *Request_Announce) Reset()
- func (x *Request_Announce) String() string
- type Request_Relay
- func (*Request_Relay) Descriptor() ([]byte, []int)deprecated
- func (x *Request_Relay) GetClientCertificate() []byte
- func (x *Request_Relay) GetForward() *pb.Forward
- func (x *Request_Relay) GetRole() pb.Role
- func (*Request_Relay) ProtoMessage()
- func (x *Request_Relay) ProtoReflect() protoreflect.Message
- func (x *Request_Relay) Reset()
- func (x *Request_Relay) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetAnnounce() *Response_Announce
- func (x *Response) GetError() *pb.Error
- func (x *Response) GetRelay() *Response_Relays
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Response_Announce
- func (*Response_Announce) Descriptor() ([]byte, []int)deprecated
- func (x *Response_Announce) GetPeers() []*ServerPeer
- func (*Response_Announce) ProtoMessage()
- func (x *Response_Announce) ProtoReflect() protoreflect.Message
- func (x *Response_Announce) Reset()
- func (x *Response_Announce) String() string
- type Response_Relays
- type ServerPeer
- func (*ServerPeer) Descriptor() ([]byte, []int)deprecated
- func (x *ServerPeer) GetClientCertificate() []byte
- func (x *ServerPeer) GetDirect() *DirectRoute
- func (x *ServerPeer) GetDirects() []*pb.AddrPort
- func (x *ServerPeer) GetId() string
- func (x *ServerPeer) GetRelays() []*pb.HostPort
- func (x *ServerPeer) GetServerCertificate() []byte
- func (*ServerPeer) ProtoMessage()
- func (x *ServerPeer) ProtoReflect() protoreflect.Message
- func (x *ServerPeer) Reset()
- func (x *ServerPeer) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_server_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Authenticate ¶
type Authenticate struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ReconnectToken []byte `protobuf:"bytes,2,opt,name=reconnect_token,json=reconnectToken,proto3" json:"reconnect_token,omitempty"` BuildVersion string `protobuf:"bytes,3,opt,name=build_version,json=buildVersion,proto3" json:"build_version,omitempty"` // contains filtered or unexported fields }
func (*Authenticate) Descriptor
deprecated
func (*Authenticate) Descriptor() ([]byte, []int)
Deprecated: Use Authenticate.ProtoReflect.Descriptor instead.
func (*Authenticate) GetBuildVersion ¶ added in v0.7.0
func (x *Authenticate) GetBuildVersion() string
func (*Authenticate) GetReconnectToken ¶
func (x *Authenticate) GetReconnectToken() []byte
func (*Authenticate) GetToken ¶
func (x *Authenticate) GetToken() string
func (*Authenticate) ProtoMessage ¶
func (*Authenticate) ProtoMessage()
func (*Authenticate) ProtoReflect ¶
func (x *Authenticate) ProtoReflect() protoreflect.Message
func (*Authenticate) Reset ¶
func (x *Authenticate) Reset()
func (*Authenticate) String ¶
func (x *Authenticate) String() string
type AuthenticateResp ¶
type AuthenticateResp struct { Error *pb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Public *pb.AddrPort `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty"` ReconnectToken []byte `protobuf:"bytes,3,opt,name=reconnect_token,json=reconnectToken,proto3" json:"reconnect_token,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateResp) Descriptor
deprecated
func (*AuthenticateResp) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResp.ProtoReflect.Descriptor instead.
func (*AuthenticateResp) GetError ¶
func (x *AuthenticateResp) GetError() *pb.Error
func (*AuthenticateResp) GetPublic ¶
func (x *AuthenticateResp) GetPublic() *pb.AddrPort
func (*AuthenticateResp) GetReconnectToken ¶
func (x *AuthenticateResp) GetReconnectToken() []byte
func (*AuthenticateResp) ProtoMessage ¶
func (*AuthenticateResp) ProtoMessage()
func (*AuthenticateResp) ProtoReflect ¶
func (x *AuthenticateResp) ProtoReflect() protoreflect.Message
func (*AuthenticateResp) Reset ¶
func (x *AuthenticateResp) Reset()
func (*AuthenticateResp) String ¶
func (x *AuthenticateResp) String() string
type ClientPeer ¶
type ClientPeer struct { Direct *DirectRoute `protobuf:"bytes,1,opt,name=direct,proto3" json:"direct,omitempty"` // TODO remove in 0.8.0 Relays []*pb.HostPort `protobuf:"bytes,2,rep,name=relays,proto3" json:"relays,omitempty"` Directs []*pb.AddrPort `protobuf:"bytes,3,rep,name=directs,proto3" json:"directs,omitempty"` ServerCertificate []byte `protobuf:"bytes,4,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"` ClientCertificate []byte `protobuf:"bytes,5,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` // contains filtered or unexported fields }
func (*ClientPeer) Descriptor
deprecated
func (*ClientPeer) Descriptor() ([]byte, []int)
Deprecated: Use ClientPeer.ProtoReflect.Descriptor instead.
func (*ClientPeer) GetClientCertificate ¶ added in v0.6.0
func (x *ClientPeer) GetClientCertificate() []byte
func (*ClientPeer) GetDirect ¶
func (x *ClientPeer) GetDirect() *DirectRoute
func (*ClientPeer) GetDirects ¶ added in v0.6.0
func (x *ClientPeer) GetDirects() []*pb.AddrPort
func (*ClientPeer) GetRelays ¶
func (x *ClientPeer) GetRelays() []*pb.HostPort
func (*ClientPeer) GetServerCertificate ¶ added in v0.6.0
func (x *ClientPeer) GetServerCertificate() []byte
func (*ClientPeer) ProtoMessage ¶
func (*ClientPeer) ProtoMessage()
func (*ClientPeer) ProtoReflect ¶
func (x *ClientPeer) ProtoReflect() protoreflect.Message
func (*ClientPeer) Reset ¶
func (x *ClientPeer) Reset()
func (*ClientPeer) String ¶
func (x *ClientPeer) String() string
type DirectRoute ¶
type DirectRoute struct { Addresses []*pb.AddrPort `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` ServerCertificate []byte `protobuf:"bytes,2,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"` ClientCertificate []byte `protobuf:"bytes,3,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` // contains filtered or unexported fields }
func (*DirectRoute) Descriptor
deprecated
func (*DirectRoute) Descriptor() ([]byte, []int)
Deprecated: Use DirectRoute.ProtoReflect.Descriptor instead.
func (*DirectRoute) GetAddresses ¶
func (x *DirectRoute) GetAddresses() []*pb.AddrPort
func (*DirectRoute) GetClientCertificate ¶
func (x *DirectRoute) GetClientCertificate() []byte
func (*DirectRoute) GetServerCertificate ¶
func (x *DirectRoute) GetServerCertificate() []byte
func (*DirectRoute) ProtoMessage ¶
func (*DirectRoute) ProtoMessage()
func (*DirectRoute) ProtoReflect ¶
func (x *DirectRoute) ProtoReflect() protoreflect.Message
func (*DirectRoute) Reset ¶
func (x *DirectRoute) Reset()
func (*DirectRoute) String ¶
func (x *DirectRoute) String() string
type Relay ¶
type Relay struct { Address *pb.HostPort `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` ServerCertificate []byte `protobuf:"bytes,2,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"` // contains filtered or unexported fields }
func (*Relay) Descriptor
deprecated
func (*Relay) GetAddress ¶
func (*Relay) GetServerCertificate ¶
func (*Relay) ProtoMessage ¶
func (*Relay) ProtoMessage()
func (*Relay) ProtoReflect ¶
func (x *Relay) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { // Soft one-of Announce *Request_Announce `protobuf:"bytes,1,opt,name=announce,proto3" json:"announce,omitempty"` Relay *Request_Relay `protobuf:"bytes,2,opt,name=relay,proto3" json:"relay,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetAnnounce ¶
func (x *Request) GetAnnounce() *Request_Announce
func (*Request) GetRelay ¶
func (x *Request) GetRelay() *Request_Relay
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Request_Announce ¶
type Request_Announce struct { Forward *pb.Forward `protobuf:"bytes,1,opt,name=forward,proto3" json:"forward,omitempty"` Role pb.Role `protobuf:"varint,2,opt,name=role,proto3,enum=shared.Role" json:"role,omitempty"` Peer *ClientPeer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"` // contains filtered or unexported fields }
func (*Request_Announce) Descriptor
deprecated
func (*Request_Announce) Descriptor() ([]byte, []int)
Deprecated: Use Request_Announce.ProtoReflect.Descriptor instead.
func (*Request_Announce) GetForward ¶
func (x *Request_Announce) GetForward() *pb.Forward
func (*Request_Announce) GetPeer ¶
func (x *Request_Announce) GetPeer() *ClientPeer
func (*Request_Announce) GetRole ¶
func (x *Request_Announce) GetRole() pb.Role
func (*Request_Announce) ProtoMessage ¶
func (*Request_Announce) ProtoMessage()
func (*Request_Announce) ProtoReflect ¶
func (x *Request_Announce) ProtoReflect() protoreflect.Message
func (*Request_Announce) Reset ¶
func (x *Request_Announce) Reset()
func (*Request_Announce) String ¶
func (x *Request_Announce) String() string
type Request_Relay ¶
type Request_Relay struct { Forward *pb.Forward `protobuf:"bytes,1,opt,name=forward,proto3" json:"forward,omitempty"` Role pb.Role `protobuf:"varint,2,opt,name=role,proto3,enum=shared.Role" json:"role,omitempty"` ClientCertificate []byte `protobuf:"bytes,3,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` // certificate to use when connecting to a relay // contains filtered or unexported fields }
func (*Request_Relay) Descriptor
deprecated
func (*Request_Relay) Descriptor() ([]byte, []int)
Deprecated: Use Request_Relay.ProtoReflect.Descriptor instead.
func (*Request_Relay) GetClientCertificate ¶
func (x *Request_Relay) GetClientCertificate() []byte
func (*Request_Relay) GetForward ¶
func (x *Request_Relay) GetForward() *pb.Forward
func (*Request_Relay) GetRole ¶
func (x *Request_Relay) GetRole() pb.Role
func (*Request_Relay) ProtoMessage ¶
func (*Request_Relay) ProtoMessage()
func (*Request_Relay) ProtoReflect ¶
func (x *Request_Relay) ProtoReflect() protoreflect.Message
func (*Request_Relay) Reset ¶
func (x *Request_Relay) Reset()
func (*Request_Relay) String ¶
func (x *Request_Relay) String() string
type Response ¶
type Response struct { Error *pb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // Soft one-of if error is nil Announce *Response_Announce `protobuf:"bytes,2,opt,name=announce,proto3" json:"announce,omitempty"` Relay *Response_Relays `protobuf:"bytes,3,opt,name=relay,proto3" json:"relay,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetAnnounce ¶
func (x *Response) GetAnnounce() *Response_Announce
func (*Response) GetRelay ¶
func (x *Response) GetRelay() *Response_Relays
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Response_Announce ¶
type Response_Announce struct { Peers []*ServerPeer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` // contains filtered or unexported fields }
func (*Response_Announce) Descriptor
deprecated
func (*Response_Announce) Descriptor() ([]byte, []int)
Deprecated: Use Response_Announce.ProtoReflect.Descriptor instead.
func (*Response_Announce) GetPeers ¶
func (x *Response_Announce) GetPeers() []*ServerPeer
func (*Response_Announce) ProtoMessage ¶
func (*Response_Announce) ProtoMessage()
func (*Response_Announce) ProtoReflect ¶
func (x *Response_Announce) ProtoReflect() protoreflect.Message
func (*Response_Announce) Reset ¶
func (x *Response_Announce) Reset()
func (*Response_Announce) String ¶
func (x *Response_Announce) String() string
type Response_Relays ¶
type Response_Relays struct { Relays []*Relay `protobuf:"bytes,1,rep,name=relays,proto3" json:"relays,omitempty"` // contains filtered or unexported fields }
func (*Response_Relays) Descriptor
deprecated
func (*Response_Relays) Descriptor() ([]byte, []int)
Deprecated: Use Response_Relays.ProtoReflect.Descriptor instead.
func (*Response_Relays) GetRelays ¶
func (x *Response_Relays) GetRelays() []*Relay
func (*Response_Relays) ProtoMessage ¶
func (*Response_Relays) ProtoMessage()
func (*Response_Relays) ProtoReflect ¶
func (x *Response_Relays) ProtoReflect() protoreflect.Message
func (*Response_Relays) Reset ¶
func (x *Response_Relays) Reset()
func (*Response_Relays) String ¶
func (x *Response_Relays) String() string
type ServerPeer ¶
type ServerPeer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Direct *DirectRoute `protobuf:"bytes,2,opt,name=direct,proto3" json:"direct,omitempty"` // TODO remove in 0.8.0 Relays []*pb.HostPort `protobuf:"bytes,3,rep,name=relays,proto3" json:"relays,omitempty"` Directs []*pb.AddrPort `protobuf:"bytes,4,rep,name=directs,proto3" json:"directs,omitempty"` ServerCertificate []byte `protobuf:"bytes,5,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"` ClientCertificate []byte `protobuf:"bytes,6,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` // contains filtered or unexported fields }
func (*ServerPeer) Descriptor
deprecated
func (*ServerPeer) Descriptor() ([]byte, []int)
Deprecated: Use ServerPeer.ProtoReflect.Descriptor instead.
func (*ServerPeer) GetClientCertificate ¶ added in v0.6.0
func (x *ServerPeer) GetClientCertificate() []byte
func (*ServerPeer) GetDirect ¶
func (x *ServerPeer) GetDirect() *DirectRoute
func (*ServerPeer) GetDirects ¶ added in v0.6.0
func (x *ServerPeer) GetDirects() []*pb.AddrPort
func (*ServerPeer) GetId ¶
func (x *ServerPeer) GetId() string
func (*ServerPeer) GetRelays ¶
func (x *ServerPeer) GetRelays() []*pb.HostPort
func (*ServerPeer) GetServerCertificate ¶ added in v0.6.0
func (x *ServerPeer) GetServerCertificate() []byte
func (*ServerPeer) ProtoMessage ¶
func (*ServerPeer) ProtoMessage()
func (*ServerPeer) ProtoReflect ¶
func (x *ServerPeer) ProtoReflect() protoreflect.Message
func (*ServerPeer) Reset ¶
func (x *ServerPeer) Reset()
func (*ServerPeer) String ¶
func (x *ServerPeer) String() string
Click to show internal directories.
Click to hide internal directories.