settings

package
v0.0.0-...-a0045c4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Store  Store            `inject:""`
	Cipher *security.Cipher `inject:""`
}

Settings setting helper

func (*Settings) Get

func (p *Settings) Get(k string, v interface{}) error

Get get setting value by key

func (*Settings) Set

func (p *Settings) Set(k string, v interface{}, f bool) error

Set save setting

type Store

type Store interface {
	Set(key string, val []byte, encode bool) error
	Get(key string) ([]byte, bool, error)
}

Store store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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