controller

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateData

type TemplateData struct {
	Frontends       watcher.EndpointList
	PrimaryFrontend *watcher.Endpoint
	Backends        watcher.EndpointList
	PrimaryBackend  *watcher.Endpoint
}

type VarnishController

type VarnishController struct {
	SecretFile           string
	Storage              string
	AdditionalParameters string
	FrontendAddr         string
	FrontendPort         int
	AdminAddr            string
	AdminPort            int
	// contains filtered or unexported fields
}

func NewVarnishController

func NewVarnishController(
	secretFile string,
	storage string,
	additionalParameter string,
	frontendAddr string,
	frontendPort int,
	adminAddr string,
	adminPort int,
	frontendUpdates chan *watcher.EndpointConfig,
	backendUpdates chan *watcher.EndpointConfig,
	templateUpdates chan []byte,
	varnishSignaller *signaller.Signaller,
	vclTemplateFile string,
	started chan struct{},
) (*VarnishController, error)

func (*VarnishController) Run

func (v *VarnishController) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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