instance

package
v0.0.0-...-a8942de Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConcurrentMap sync.Map

Functions

func DeleteById

func DeleteById(id int64)

func DeleteByNodeId

func DeleteByNodeId(nodeId string)

func DtoToEntity

func DtoToEntity()

func Save

func Save(inst Instance)

func SendConfiguration

func SendConfiguration(inst *Instance, listeners []types.Resource, clusters []types.Resource)

Types

type Infrastructure

type Infrastructure struct {
	Name         string
	Version      int
	Public_ip    string
	Private_ip   string
	Local        []Local
	Remote       []Remote
	Scripts      []string
	Gateway      string
	Dependencies []string
}

type Instance

type Instance struct {
	Id           int64
	NodeId       string
	Address      string
	Version      int32
	Local        []Local
	Remote       []Remote
	Dependencies []string
}

func All

func All() []Instance

func BuildDefault

func BuildDefault(id int64, addr string) Instance

func LoadById

func LoadById(id int64) (*Instance, bool)

func LoadByNodeId

func LoadByNodeId(nodeId string) (*Instance, bool)

type Local

type Local struct {
	Name    string
	Port    uint32
	Address string
}

________________________________________________________________________________ Data Structure ________________________________________________________________________________

type Remote

type Remote struct {
	Name    string
	Port    uint32
	Address string
}

Jump to

Keyboard shortcuts

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