updater

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 13 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) Load added in v0.6.14

Load mocks base method.

func (*MockUpdater) Shutdown

func (m *MockUpdater) Shutdown() error

Shutdown mocks base method.

func (*MockUpdater) Start

func (m *MockUpdater) Start() error

Start mocks base method.

type MockUpdaterMockRecorder

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

MockUpdaterMockRecorder is the mock recorder for MockUpdater.

func (*MockUpdaterMockRecorder) Load added in v0.6.14

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

Load indicates an expected call of Load.

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.

type Specification

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

func (*Specification) Load added in v0.6.14

Load function reads DB file and returns it

func (*Specification) Run added in v0.6.13

func (s *Specification) Run()

Run function performs update of the specification

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

type Updater

type Updater interface {
	Start() error
	Shutdown() error
	Load() (database.DBOpenAPILoader, error)
}

func NewController

func NewController(lock *sync.RWMutex, logger *logrus.Logger, sqlLiteStorage database.DBOpenAPILoader, cfg *config.APIMode, api *fasthttp.Server, shutdown chan os.Signal, health *handlersAPI.Health, allowedIPCache *allowiplist.AllowedIPsType, waf coraza.WAF) 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