Documentation ¶
Index ¶
- Variables
- func DecodeJson(data Data, r io.Reader) error
- func DecodeXml(data Data, r io.Reader) error
- func DecodeYaml(data Data, r io.Reader) error
- type Cache
- type Data
- type DecodeFunc
- type Filer
- type Http
- type LoadFunc
- type Loader
- func (load *Loader) Get() Data
- func (load *Loader) JSON() (string, error)
- func (load *Loader) Read() (error, bool)
- func (load *Loader) Reset()
- func (load *Loader) Stop()
- func (load *Loader) Update(async bool)
- func (load *Loader) Watch()
- func (load *Loader) WithCmd(cmd string) *Loader
- func (load *Loader) WithLoadFunc(l LoadFunc) *Loader
- func (load *Loader) WithPublisher(p bus.Publisher) *Loader
- func (load *Loader) WithSecond(second time.Duration) *Loader
- func (load *Loader) WithTopic(topic string) *Loader
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoModified = errors.New("file not modified")
Functions ¶
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func NewHttp ¶ added in v0.4.6
func NewHttp(url string, data Data, headFunc commonhttp.HeaderFunc) *Loader
func (*Loader) WithLoadFunc ¶
Click to show internal directories.
Click to hide internal directories.