dbconfig

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidConfig     = errors.New("Invalid config")
	ErrInvalidConfigPath = errors.New("Invalid config path")
)

Functions

func GetConfigObj

func GetConfigObj() model.Config

func Initonfig

func Initonfig(fileLocation FileLocation)

func MonitorConfigFile

func MonitorConfigFile(fileContent FileContent)

Types

type FileContent

type FileContent struct {
	FileLocation
	FileName      string
	FilePath      string
	FileExtention string
	WatchCB       func(fsnotify.Event)
}

type FileLocation

type FileLocation string

func (FileLocation) String

func (fl FileLocation) String() string

Jump to

Keyboard shortcuts

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