status

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Up status
	Up = "up"

	// Down status
	Down = "down"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.1.5

type Client struct {
	*apihelper.Client
}

Client for the services

func New added in v1.1.5

func New(wectx config.Context) *Client

New Client

func (*Client) IsUp added in v1.1.5

func (c *Client) IsUp(ctx context.Context) bool

IsUp is returned if the infrastructure is up

func (*Client) UnsafeGet added in v1.1.5

func (c *Client) UnsafeGet(ctx context.Context) (s Status, err error)

UnsafeGet is a unsafe getter for the status See get() method below to understand why. It is exported here to use for domains.

type Domains

type Domains struct {
	Infrastructure string `json:"infrastructure"`
	Service        string `json:"service"`
}

Domains of the infrastructure

type Status

type Status struct {
	Status  string  `json:"status"`
	Version string  `json:"version"`
	Domains Domains `json:"domains"`
}

Status of the Backend

Jump to

Keyboard shortcuts

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