source

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const FileSourceEnding = ".yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSourceHandler

type BaseSourceHandler struct {
	Config *config.SourceConfig

	Databases map[string]*sourceApi.DatabaseSource

	Instances map[string]bool
	// contains filtered or unexported fields
}

func NewSourceHandler

func NewSourceHandler(config *config.SourceConfig) *BaseSourceHandler

func (*BaseSourceHandler) AddDatabaseSource

func (h *BaseSourceHandler) AddDatabaseSource(source *sourceApi.DatabaseSource) error

func (*BaseSourceHandler) GetSource

func (h *BaseSourceHandler) GetSource(name string) *sourceApi.DatabaseSource

func (*BaseSourceHandler) Handle

func (h *BaseSourceHandler) Handle(msg server.NamedElement) error

func (*BaseSourceHandler) Init

func (h *BaseSourceHandler) Init(setter server.GlobalSetter) error

func (*BaseSourceHandler) IsReady

func (h *BaseSourceHandler) IsReady(dbName, instanceName string) bool

func (*BaseSourceHandler) MarkDatabaseSourceIdle

func (h *BaseSourceHandler) MarkDatabaseSourceIdle(name string) error

func (*BaseSourceHandler) OnDbStatusChanged

func (h *BaseSourceHandler) OnDbStatusChanged(dbStatus *grpcServerApi.DbStatusResponse) bool

func (*BaseSourceHandler) OnInstanceStatusChanged

func (h *BaseSourceHandler) OnInstanceStatusChanged(instanceStatus *grpcServerApi.InstanceStatusResponse) bool

func (*BaseSourceHandler) PostInit

func (h *BaseSourceHandler) PostInit(getter server.GlobalGetter) error

func (*BaseSourceHandler) RemoveDatabaseSource

func (h *BaseSourceHandler) RemoveDatabaseSource(source *sourceApi.DatabaseSource)

type FileSourceHandler

type FileSourceHandler struct {
	sourceApi.SourceHandler

	Config *config.FileSourceConfig
	// contains filtered or unexported fields
}

func NewFileSourceHandler

func NewFileSourceHandler(handler sourceApi.SourceHandler, config *config.FileSourceConfig) *FileSourceHandler

func (*FileSourceHandler) FilesToWatch

func (h *FileSourceHandler) FilesToWatch() []string

func (*FileSourceHandler) Handle

func (h *FileSourceHandler) Handle(msg server.NamedElement) error

func (*FileSourceHandler) Init

func (h *FileSourceHandler) Init(setter server.GlobalSetter) error

func (*FileSourceHandler) OnWatchError

func (h *FileSourceHandler) OnWatchError(err error)

func (*FileSourceHandler) PostInit

func (h *FileSourceHandler) PostInit(getter server.GlobalGetter) error

Jump to

Keyboard shortcuts

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