repository

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package repository with a map[string]interface{} backed config.Repository implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map struct {
	// Default containing all properties associated with this provider
	Database map[string]interface{}
}

Map implements config.Provider with a map[string]interface{} database

func (*Map) AllSettings

func (c *Map) AllSettings() map[string]interface{}

AllSettings returns all values associated with this provider as a map[string]interface{}.

func (*Map) Get

func (c *Map) Get(name string) (interface{}, bool)

Get returns the value associated with the key.

func (*Map) IsSet

func (c *Map) IsSet(name string) bool

IsSet returns if there's a value associated with the key.

func (*Map) Set

func (c *Map) Set(name string, value interface{}) interface{}

Set associates a value to to the key.

Jump to

Keyboard shortcuts

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