file

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package file reads configuration from a JSON file

e.g. CONFIG_URI=file://${PWD}/config/dev.json

Index

Constants

View Source
const Name = "file"

Name contains the adapter registered name

Variables

This section is empty.

Functions

func New

func New(uri *url.URL) (a.Store, error)

New returns a new file config store

Types

type Store

type Store struct {
	Path string
}

Store reads config from a file

func (*Store) Load

func (s *Store) Load() (io.ReadCloser, error)

Load implements Store

Jump to

Keyboard shortcuts

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