model

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulInfo

type ConsulInfo struct {
	Addresses []string `mapstructure:"addresses"`
	DC        string   `mapstructure:"dc"`
	Token     string   `mapstructure:"token"`
}

type ServiceState

type ServiceState struct {
	Index uint64
	Data  []consulapi.ServiceEntry
}

type StateChangeMsg

type StateChangeMsg struct {
	DC      string `json:"dc"`
	Service string `json:"service"`
	Index   uint64 `json:"index"`
}

type StateWait

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

func NewStateWait

func NewStateWait() *StateWait

func (*StateWait) GetOrCreateItem

func (sw *StateWait) GetOrCreateItem(dc, svcName string) chan struct{}

func (*StateWait) Notify

func (sw *StateWait) Notify(dc, svcName string)

Jump to

Keyboard shortcuts

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