core

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "core"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// module common config
	module.Config `mapstructure:",squash"`

	ClusterName string `mapstructure:"cluster_name"`
	// backend connection
	BackendConfig *backend.Config `mapstructure:"backend"`
}

func (*Config) IsActive

func (c *Config) IsActive() bool

type Module

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

func NewModule

func NewModule() *Module

func (*Module) BackendOperator

func (m *Module) BackendOperator() backend.Operator

func (*Module) ClusterName added in v0.6.0

func (m *Module) ClusterName() string

func (*Module) Config

func (m *Module) Config() module.ConfigInterface

func (*Module) InstanceID

func (m *Module) InstanceID() string

func (*Module) Name

func (m *Module) Name() string

func (*Module) NotifyStartSuccess

func (m *Module) NotifyStartSuccess()

func (*Module) RequiredModules

func (m *Module) RequiredModules() []string

func (*Module) Shutdown

func (m *Module) Shutdown(ctx context.Context, mgr *module.Manager) error

func (*Module) Start

func (m *Module) Start(ctx context.Context, mgr *module.Manager) error

type Operator

type Operator interface {
	// InstanceId of Rover
	InstanceID() string
	// ClusterName of Rover
	ClusterName() string
	// BackendOperator for operate with backend client
	BackendOperator() backend.Operator
}

Operator when the other module operate with core module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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