Help us shape the future of Go! Take the 2026 Go Developer Survey

configfile

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem interface {
	ReadFile(filename string) ([]byte, error)
}

Filesystem is an interface used to mock out calls to ReadFile

func NewRealFS

func NewRealFS() Filesystem

NewRealFS builds a Filesystem that wraps around `ioutil.ReadFile`.

type Loader

type Loader interface {
	Load() (*config.WebhookConfiguration, error)
}

func NewFSLoader

func NewFSLoader(fs Filesystem, name string) (Loader, error)

Jump to

Keyboard shortcuts

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