verify

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client for verifying the config version.

func NewClient

func NewClient() *Client

NewClient returns a new client pointed at the config version socket.

func (*Client) GetConfigVersion

func (c *Client) GetConfigVersion() (int, error)

GetConfigVersion get version number that we put in the nginx config to verify that we're using the correct config.

func (*Client) WaitForCorrectVersion

func (c *Client) WaitForCorrectVersion(expectedVersion int) error

WaitForCorrectVersion calls the config version endpoint until it gets the expectedVersion, which ensures that a new worker process has been started for that config version.

type ConfigGenerator

type ConfigGenerator struct {
	// contains filtered or unexported fields
}

ConfigGenerator handles generating and writing the config version file.

func NewConfigGenerator

func NewConfigGenerator() (*ConfigGenerator, error)

NewConfigGenerator builds a new ConfigWriter - primarily parsing the config version template.

func (*ConfigGenerator) GenerateVersionConfig

func (c *ConfigGenerator) GenerateVersionConfig(configVersion int) ([]byte, error)

GenerateVersionConfig generates the config version file.

Jump to

Keyboard shortcuts

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