Documentation ¶
Overview ¶
Package filesource created on 2017/6/22.
Index ¶
Constants ¶
View Source
const ( //FileConfigSourceConst is a variable of type string FileConfigSourceConst = "FileSource" //DefaultFilePriority is a variable of type string DefaultFilePriority = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigInfo ¶
type ConfigInfo struct { FilePath string Value interface{} }
ConfigInfo is s struct
type FileSource ¶
type FileSource interface { core.ConfigSource AddFileSource(filePath string, priority uint32) error }
FileSource is a interface
func NewYamlConfigurationSource ¶
func NewYamlConfigurationSource() FileSource
NewYamlConfigurationSource creates new yaml configuration
type FileSourceTypes ¶
type FileSourceTypes string
FileSourceTypes is a string
const ( //RegularFile is a variable of type string RegularFile FileSourceTypes = "RegularFile" //Directory is a variable of type string Directory FileSourceTypes = "Directory" //InvalidFileType is a variable of type string InvalidFileType FileSourceTypes = "InvalidType" )
Click to show internal directories.
Click to hide internal directories.