state

package
Version: v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Orgname      string
	Setup        bool
	CreationTime int64
}

Model is the data about a governor server in between restarts

Orgname is the name of the governor server org Setup is true if setup has already been run CreationTime is the Unix time of when setup had been first run

type ReqSetup

type ReqSetup struct {
	Orgname string
}

ReqSetup are the options necessary to setup the server state

type State

type State interface {
	Get() (*Model, error)
	Set(m *Model) error
	Setup(req ReqSetup) error
}

State is the interface for a service that records governor server state

Get retrieves the current state Set sets the state Setup sets up the state

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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