forever

package
v10.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: MIT Imports: 16 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 defines the stucture of the client

func (*Client) Shutdown

func (client *Client) Shutdown()

Shutdown will give tell the connector runner it is time to shutdown

func (*Client) Start

func (client *Client) Start() error

Start runs the connector forever

type Forever

type Forever interface {
	Start() error
	Shutdown()
}

Forever defines the interface to run the runner for forever

func NewRunner

func NewRunner(serviceConfig *runner.Config, currentVersion string) Forever

NewRunner creates a new instance of the forever runner

type VersionInfo

type VersionInfo struct {
	Version string `json:"version"`
}

VersionInfo defines the information of the request

Jump to

Keyboard shortcuts

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