updater

package
v0.6.12 Latest Latest
Warning

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

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

Documentation

Overview

Package updater is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUpdater

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

MockUpdater is a mock of Updater interface.

func NewMockUpdater

func NewMockUpdater(ctrl *gomock.Controller) *MockUpdater

NewMockUpdater creates a new mock instance.

func (*MockUpdater) EXPECT

func (m *MockUpdater) EXPECT() *MockUpdaterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUpdater) Shutdown

func (m *MockUpdater) Shutdown() error

Shutdown mocks base method.

func (*MockUpdater) Start

func (m *MockUpdater) Start() error

Start mocks base method.

func (*MockUpdater) Update

func (m *MockUpdater) Update() error

Update mocks base method.

type MockUpdaterMockRecorder

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

MockUpdaterMockRecorder is the mock recorder for MockUpdater.

func (*MockUpdaterMockRecorder) Shutdown

func (mr *MockUpdaterMockRecorder) Shutdown() *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*MockUpdaterMockRecorder) Start

func (mr *MockUpdaterMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockUpdaterMockRecorder) Update

func (mr *MockUpdaterMockRecorder) Update() *gomock.Call

Update indicates an expected call of Update.

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