config

package
v0.0.0-...-ab0d46a Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config       *model.EdgeSystem
	GatewayID    string
	GatherLock   sync.Mutex
	OriginConfig openapi.OpenAPICli
)
View Source
var (
	GatherSignal = make(chan context.Context)
	StopSignal   = make(chan context.Context)
	ConfigModify = make(chan struct{})
)

Functions

func IsGathering

func IsGathering() bool

func NullConfig

func NullConfig() *model.EdgeSystem

func RefreshSlot

func RefreshSlot() error

func SaveConfig

func SaveConfig(t SaveType) error

Types

type SaveType

type SaveType uint8
const (
	SaveType_ALL SaveType = iota
	SaveType_EnableConfig
	SaveType_Config
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳