Documentation ¶
Index ¶
- Variables
- type Cache
- type CacheLoadFunc
- type CacheOption
- 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) WithFormat(format 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
- func (load *Loader) WithUnmarshal(l coder.Unmarshal) *Loader
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoModified = errors.New("file not modified")
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Loader // contains filtered or unexported fields }
func (*Cache) WithCacheLoadFunc ¶ added in v1.1.23
func (ca *Cache) WithCacheLoadFunc(fn CacheLoadFunc) *Cache
type CacheLoadFunc ¶ added in v1.1.23
type CacheLoadFunc func(dao *dao.Dao, opt *CacheOption) error
type CacheOption ¶ added in v1.1.23
type DecodeFunc ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func CreateLoader ¶ added in v1.3.23
func CreateLoader() Loader
func NewHttp ¶ added in v0.4.6
func NewHttp(url string, data Data, headFunc commonhttp.HeaderFunc) *Loader
func (*Loader) WithFormat ¶ added in v1.0.56
func (*Loader) WithLoadFunc ¶
Click to show internal directories.
Click to hide internal directories.