model

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

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxControllerPriority = 1000000
View Source
const MinControllerPriority = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Metadata mtypes.Metadata `json:"metadata,omitempty"`
	Spec     ControllerSpec  `json:"spec,omitempty"`
}

Controller contains the parameters needed for Controllers It implements the interface for managing the Controllers

type ControllerKey

type ControllerKey struct {
	ControllerName string `json:"clm-controller-name"`
}

ControllerKey is the key structure that is used in the database

func (ControllerKey) String

func (mk ControllerKey) String() string

We will use json marshalling to convert to string to preserve the underlying structure.

type ControllerSpec

type ControllerSpec struct {
	Host     string `json:"host,omitempty"`
	Port     int    `json:"port,omitempty"`
	Priority int    `json:"priority,omitempty"`
}

Jump to

Keyboard shortcuts

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