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 ¶
GetConfigVersion get version number that we put in the nginx config to verify that we're using the correct config.
func (*Client) WaitForCorrectVersion ¶
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.