payloads

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Self       netservice.Instance `json:"self"`
	Storage    config.Storage      `json:"storage"`
	Registry   config.Registry     `json:"registry"`
	Transforms config.Transforms   `json:"transforms"`
}

Configuration of a proxy instance when it starts up that is sent to the registry.

func (Configuration) Texts

func (c Configuration) Texts() (string, string, string, error)

type Heartbeat

type Heartbeat struct {
	Self        instance `json:"self"`
	NumModules  int      `json:"num_modules"`
	NumVersions int      `json:"num_versions"`
	Timestamp   int      `json:"send_time"` // unix timestamp seconds
}

Heartbeat of a proxy that is sent periodically to the registry.

func (Heartbeat) String

func (hb Heartbeat) String() string

func (Heartbeat) TimeSince

func (hb Heartbeat) TimeSince() string

Jump to

Keyboard shortcuts

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