frame

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultResponseHeaderTimeout = 3 * time.Second

Variables

This section is empty.

Functions

func Idle

func Idle(dur time.Duration, cb func() error)

Types

type CommonConfigurableUnit

type CommonConfigurableUnit struct {
	CfgName   string
	CfgModChs []chan<- *ConfigItem
}

func (*CommonConfigurableUnit) GetConfigName

func (x *CommonConfigurableUnit) GetConfigName() string

func (*CommonConfigurableUnit) LoadConfig

func (x *CommonConfigurableUnit) LoadConfig(name string, configPtr interface{}, modified ...chan<- *ConfigItem) error

func (*CommonConfigurableUnit) NotifyConfigModified

func (x *CommonConfigurableUnit) NotifyConfigModified(items ...ConfigItem)

type ConfigItem

type ConfigItem struct {
	Name  string
	Value interface{}
}

type Configurable

type Configurable interface {
	LoadConfig(name string, configPtr interface{}, modified ...chan<- *ConfigItem) error
	NotifyConfigModified(items ...ConfigItem)
	GetConfigName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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