common

package
v0.0.0-...-553e66b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultMetaStore

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

func NewDefaultMetaStore

func NewDefaultMetaStore(acc *qgen.Accumulator) (*DefaultMetaStore, error)

func (*DefaultMetaStore) Get

func (s *DefaultMetaStore) Get(name string) (val string, e error)

func (*DefaultMetaStore) Set

func (s *DefaultMetaStore) Set(name, val string) error

func (*DefaultMetaStore) SetInt

func (s *DefaultMetaStore) SetInt(name string, val int) error

func (*DefaultMetaStore) SetInt64

func (s *DefaultMetaStore) SetInt64(name string, val int64) error

type MetaStore

type MetaStore interface {
	Get(name string) (val string, err error)
	Set(name, val string) error
	SetInt(name string, val int) error
	SetInt64(name string, val int64) error
}

MetaStore is a simple key-value store for the system to stash things in when needed

Jump to

Keyboard shortcuts

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