cloudflared

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2026 License: GPL-2.0 Imports: 34 Imported by: 0

README

sing-cloudflared

Reimplementation of cloudflared for sing-box integration.

Included:

  • remote-managed tunnel

Without:

  • Management / Diagnostics / Metrics

Upstream: 2026.3.0

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

func (*Service) Close

func (s *Service) Close() error

func (*Service) Start

func (s *Service) Start() error

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
}

Directories

Path Synopsis
cmd
cloudflared command
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL