models

package
v0.0.0-...-7ca00ca Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntPtr

func IntPtr(x int) *int

Types

type App

type App struct {
	Guid    string
	Process Process
}

type Destination

type Destination struct {
	Guid   string
	App    App
	Weight *int
	Port   int
}

type Domain

type Domain struct {
	Guid     string
	Name     string
	Internal bool
}

type Organization

type Organization struct {
	Guid string
}

type Process

type Process struct {
	Type string
}

type Route

type Route struct {
	Guid         string
	Host         string
	Path         string
	Url          string
	Domain       Domain
	Space        Space
	Destinations []Destination
}

func (Route) FQDN

func (r Route) FQDN() string

type RouteSnapshot

type RouteSnapshot struct {
	Routes []Route
}

type SnapshotRepo

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

func (*SnapshotRepo) Get

func (r *SnapshotRepo) Get() (*RouteSnapshot, bool)

func (*SnapshotRepo) Put

func (r *SnapshotRepo) Put(snapshot *RouteSnapshot)

type Space

type Space struct {
	Guid         string
	Organization Organization
}

Jump to

Keyboard shortcuts

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