Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolQUIC = transport.ProtocolQUIC ProtocolHTTP2 = transport.ProtocolHTTP2 DatagramVersionV2 = "v2" DatagramVersionV3 = "v3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigUpdateResult ¶
type ConfigUpdateResult = config.UpdateResult
type ICMPHandler ¶
type ICMPHandler = icmp.RouteHandler
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(options ServiceOptions) (*Service, error)
func (*Service) ApplyConfig ¶
func (s *Service) ApplyConfig(version int32, configData []byte) config.UpdateResult
type ServiceOptions ¶
type ServiceOptions struct {
Logger logger.ContextLogger
ConnectionDialer N.Dialer
ControlDialer N.Dialer
TunnelDialer N.Dialer
ICMPHandler ICMPHandler
ConnContext func(context.Context) context.Context
Token string
HAConnections int
Protocol string
PostQuantum bool
EdgeIPVersion int
DatagramVersion string
GracePeriod time.Duration
Region string
ClientVersion string
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cloudflared
command
|
|
|
internal/capnpgen
command
|
|
|
internal/update_cloudflare_ca
command
|
|
|
internal
|
|
Click to show internal directories.
Click to hide internal directories.