preferences

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Preferences

type Preferences interface {
	Put(key string, value string) error
	Get(key string) (string, error)
	Remove(key string) error
	List() (map[string]string, error)
}

type SQLProvider

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

func NewSQLProvider

func NewSQLProvider(
	db *sql.DB,
) (*SQLProvider, error)

func (*SQLProvider) Close

func (p *SQLProvider) Close() error

func (*SQLProvider) Get

func (p *SQLProvider) Get(key string) (string, error)

func (*SQLProvider) List

func (p *SQLProvider) List() (map[string]string, error)

func (*SQLProvider) Put

func (p *SQLProvider) Put(
	key string,
	value string,
) error

func (*SQLProvider) Remove

func (p *SQLProvider) Remove(key string) error

Jump to

Keyboard shortcuts

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