filesource

package
v0.0.0-...-0c60762 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

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