updater

package
v0.0.0-...-7627a42 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Specification

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

func (*Specification) Shutdown

func (s *Specification) Shutdown() error

Shutdown function stops update process

func (*Specification) Start

func (s *Specification) Start() error

Start function starts update process every ConfigurationUpdatePeriod

func (*Specification) Update

func (s *Specification) Update() error

Update function performs a specification update

type Updater

type Updater interface {
	Start() error
	Shutdown() error
	Update() error
}

func NewController

func NewController(lock *sync.RWMutex, logger *logrus.Logger, sqlLiteStorage database.DBOpenAPILoader, cfg *config.APIFWConfigurationAPIMode, api *fasthttp.Server, shutdown chan os.Signal, health *handlersAPI.Health) Updater

NewController function defines configuration updater controller

Jump to

Keyboard shortcuts

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