zone

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller consists instance for a type of data

func New

func New() *Controller

New creates a new Controller with its corresponding utils.Cache

func (*Controller) Content

func (c *Controller) Content() []*Zone

Content returns the content from its cache

func (*Controller) Status

func (c *Controller) Status(_ string) *status.Status

Status gives status.Status of current controller with the cache status

func (*Controller) Zone

func (c *Controller) Zone(zoneID string) (result *Zone)

Zone returns the Zone found with specified zoneID

type Zone

type Zone struct {
	ZoneID       string            `json:"zoneId,omitempty"`
	Type         string            `json:"type,omitempty"`
	Existence    models.Existence  `json:"existence"`
	ZoneNameI18N map[string]string `json:"zoneName_i18n,omitempty"`
}

Zone specifies data structure for the zone data type

func (Zone) MarshalJSON added in v1.1.0

func (z Zone) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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