model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const ConfigCollectionName = "Config"
View Source
const PersistPath = "persistPath"
View Source
const RouteCollectionFileName = "Route.json"
View Source
const RouteCollectionID = "id"
View Source
const RouteCollectionName = "Route"
View Source
const ServiceCollectionFileName = "Service.json"
View Source
const ServiceCollectionID = "id"
View Source
const ServiceCollectionName = "Service"

Variables

View Source
var (
	OKMessage = []byte(`{"ok": "true"}`)
)

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Routes   *[]Route
	Services *[]Service
}
var (
	Local *Cluster
)

type Config

type Config struct {
	ID  string
	Val string
}

type Cred

type Cred struct {
	URL *string
	ID  *string
	Key *string
}

type Object

type Object struct {
	Type string          `json:"type"`
	List json.RawMessage `json:"list"`
}

type Route

type Route struct {
	ID         string `json:"id"`
	DomainName string `json:"domainName"`
	Address    string `json:"address"`
	SSL        SSL    `json:"ssl"`
}

func (*Route) GetHttpAddress

func (r *Route) GetHttpAddress() string

func (*Route) GetWsAddress

func (r *Route) GetWsAddress() string

type SSL

type SSL struct {
	Email  string `json:"email"`
	Accept bool   `json:"accept"`
}

type Service

type Service struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Image       string `json:"image"`
	Replicas    int    `json:"replicas,omitempty"`
	MemoryLimit int    `json:"memoryLimit,omitempty"`
	Network     string `json:"network"`
}

Jump to

Keyboard shortcuts

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