fs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type FileExtType

type FileExtType string
const FileExtJson FileExtType = "json"
const FileExtToml FileExtType = "toml"
const FileExtYaml FileExtType = "yaml"

func ExtParser

func ExtParser(file string) FileExtType

type FsBroker

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

func NewFs

func NewFs(path string, logger *log.Logger) (error, *FsBroker)

func (*FsBroker) Close

func (fs *FsBroker) Close() error

func (*FsBroker) Decode

func (fs *FsBroker) Decode(input interface{}, output interface{}, weaklyTypedInput bool) error

func (*FsBroker) LoadContent

func (fs *FsBroker) LoadContent() ([]byte, error)

func (*FsBroker) Notify

func (fs *FsBroker) Notify() <-chan struct{}

func (*FsBroker) Parse

func (fs *FsBroker) Parse(content []byte) (error, map[string]interface{})

func (*FsBroker) Watch

func (fs *FsBroker) Watch()

Jump to

Keyboard shortcuts

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