parser

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFileLastModTime added in v0.3.0

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

Types

type Parser

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

type TomlApolloEntrance added in v0.4.0

type TomlApolloEntrance 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 TomlParser

type TomlParser struct{}

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