core

package
v1.6.27 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CfgDevModeKey was previously defined here.
	CfgDevModeKey = config.CfgDevModeKey

	CfgNetworkServiceKey = "core/networkService"

	CfgLocaleKey = "core/locale"
)

Configuration Keys.

Functions

This section is empty.

Types

type Core added in v1.6.19

type Core struct {
	EventShutdown *mgr.EventMgr[struct{}]
	EventRestart  *mgr.EventMgr[struct{}]
	// contains filtered or unexported fields
}

Core is the core service module.

func New added in v1.6.19

func New(instance instance) (*Core, error)

New returns a new NetEnv module.

func (*Core) Manager added in v1.6.19

func (c *Core) Manager() *mgr.Manager

Manager returns the manager.

func (*Core) Start added in v1.6.19

func (c *Core) Start() error

Start starts the module.

func (*Core) Stop added in v1.6.19

func (c *Core) Stop() error

Stop stops the module.

type ModulesIntegration added in v1.6.19

type ModulesIntegration struct{}

ModulesIntegration provides integration with the modules system.

func (*ModulesIntegration) Get added in v1.6.19

func (mi *ModulesIntegration) Get(keyOrPrefix string) ([]record.Record, error)

Get should return one or more records that match keyOrPrefix. keyOrPrefix is guaranteed to be at least the prefix used to register the ValueProvider.

func (*ModulesIntegration) Set added in v1.6.19

Set is called when the value is set from outside. If the runtime value is considered read-only ErrReadOnly should be returned. It is guaranteed that the key of the record passed to Set is prefixed with the key used to register the value provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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