model

package
v0.0.0-...-a121bc4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: EUPL-1.2 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Count uint64 `json:"count"`
}

Counter represents an access counter.

func NewCounter

func NewCounter(count uint64) *Counter

NewCounter creates a new Counter.

type Dependency

type Dependency struct {
	Service string `json:"service"`
	Status  string `json:"status"`
}

Dependency represents a service dependency.

type Health

type Health struct {
	Name         string       `json:"name"`
	Version      string       `json:"version"`
	Dependencies []Dependency `json:"dependencies"`
}

Health represents the health status of the service and its dependencies.

func NewHealth

func NewHealth(name, version string, dependencies []Dependency) *Health

NewHealth creates a new Health instance.

type IP

type IP struct {
	V4 string `json:"ipv4,omitempty"`
	V6 string `json:"ipv6,omitempty"`
}

Address represents an IP address.

func NewIP

func NewIP(ip string) *IP

NewIP creates a new IP address.

Jump to

Keyboard shortcuts

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