MCPcopy
hub / github.com/cloudflare/cloudflared / ForwarderService

Struct ForwarderService

cmd/cloudflared/app_forward_service.go:16–20  ·  view source on GitHub ↗

ForwarderService is used to wrap the access package websocket forwarders into a service model for the overwatch package. it also holds a reference to the config object that represents its state

Source from the content-addressed store, hash-verified

14// into a service model for the overwatch package.
15// it also holds a reference to the config object that represents its state
16type ForwarderService struct {
17 forwarder config.Forwarder
18 shutdown chan struct{}
19 log *zerolog.Logger
20}
21
22// NewForwardService creates a new forwarder service
23func NewForwardService(f config.Forwarder, log *zerolog.Logger) *ForwarderService {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected