desiredstatefetcher

package
v0.0.0-...-f9cc615 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2014 License: Apache-2.0, BSD-3-Clause, 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 BulkToken

type BulkToken struct {
	Id int `json:"id"`
}

type DesiredStateFetcher

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

func New

func New(config *config.Config,
	store store.Store,
	metricsAccountant metricsaccountant.MetricsAccountant,
	httpClient httpclient.HttpClient,
	timeProvider timeprovider.TimeProvider,
	logger logger.Logger) *DesiredStateFetcher

func (*DesiredStateFetcher) Fetch

func (fetcher *DesiredStateFetcher) Fetch(resultChan chan DesiredStateFetcherResult)

type DesiredStateFetcherResult

type DesiredStateFetcherResult struct {
	Success    bool
	Message    string
	Error      error
	NumResults int
}

type DesiredStateServerResponse

type DesiredStateServerResponse struct {
	Results   map[string]models.DesiredAppState `json:"results"`
	BulkToken BulkToken                         `json:"bulk_token"`
}

func NewDesiredStateServerResponse

func NewDesiredStateServerResponse(jsonMessage []byte) (DesiredStateServerResponse, error)

func (DesiredStateServerResponse) BulkTokenRepresentation

func (response DesiredStateServerResponse) BulkTokenRepresentation() string

func (DesiredStateServerResponse) ToJSON

func (response DesiredStateServerResponse) ToJSON() []byte

Jump to

Keyboard shortcuts

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