parser

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocalFile added in v0.4.3

func IsLocalFile(file string) bool

func ParseFileLastModTime added in v0.3.0

func ParseFileLastModTime(file string) (r int64, err error)

Types

type MemParser added in v0.5.0

type MemParser struct{}

func NewMemParser added in v0.5.0

func NewMemParser() *MemParser

func (*MemParser) GetLastModTime added in v0.5.0

func (this *MemParser) GetLastModTime(opts *options.Options) (r int64, err error)

func (*MemParser) Unmarshal added in v0.5.0

func (this *MemParser) Unmarshal(cfg interface{}, opts *options.Options) (err error)

type Parser

type Parser interface {
	Unmarshal(cfg interface{}, opts *options.Options) error
	GetLastModTime(opts *options.Options) (int64, error)
}

type TomlApolloConfig added in v0.4.3

type TomlApolloConfig struct {
	AppId    string `toml:"app_id"`
	CacheDir string `toml:"cache_dir"`
	MetaAddr string `toml:"meta_addr"`
}

type TomlApolloParser added in v0.4.0

type TomlApolloParser struct {
	// contains filtered or unexported fields
}

func NewTomlApolloParser added in v0.4.0

func NewTomlApolloParser() *TomlApolloParser

func (*TomlApolloParser) GetLastModTime added in v0.4.0

func (this *TomlApolloParser) GetLastModTime(opts *options.Options) (r int64, err error)

func (*TomlApolloParser) Unmarshal added in v0.4.0

func (this *TomlApolloParser) Unmarshal(cfg interface{}, opts *options.Options) (err error)

type TomlImport added in v0.4.0

type TomlImport struct {
	Import []string
}

type TomlNacosConfig added in v0.4.3

type TomlNacosConfig struct {
	AppId       string `toml:"app_id"`
	GroupId     string `toml:"group_id"`
	NamespaceId string `toml:"namespace_id"`
	CacheDir    string `toml:"cache_dir"`
	LogDir      string `toml:"log_dir"`
	LogLevel    string `toml:"log_level"` // debug, info, warn, error
	MetaAddr    string `toml:"meta_addr"`
}

type TomlNacosParser added in v0.4.3

type TomlNacosParser struct {
	// contains filtered or unexported fields
}

func NewTomlNacosParser added in v0.4.3

func NewTomlNacosParser() *TomlNacosParser

func (*TomlNacosParser) GetLastModTime added in v0.4.3

func (this *TomlNacosParser) GetLastModTime(opts *options.Options) (r int64, err error)

func (*TomlNacosParser) Unmarshal added in v0.4.3

func (this *TomlNacosParser) Unmarshal(cfg interface{}, opts *options.Options) (err error)

type TomlParser

type TomlParser struct {
	// contains filtered or unexported fields
}

func NewTomlParser

func NewTomlParser() *TomlParser

func (*TomlParser) GetLastModTime

func (this *TomlParser) GetLastModTime(opts *options.Options) (r int64, err error)

func (*TomlParser) Unmarshal

func (this *TomlParser) Unmarshal(cfg interface{}, opts *options.Options) (err error)

Jump to

Keyboard shortcuts

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