vtec

package
v0.0.0-...-cdae8e3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalStore = make(map[string]string)

Functions

func AutoSync

func AutoSync(o *Options)

func Sync

func Sync(s Store) bool

Types

type Options

type Options struct {
	Storage      Store
	SyncInternal int
}

type Store

type Store interface {
	Recover() error
	Write(data map[string]string) error
}

type Vtec

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

func New

func New(options Options) *Vtec

func (*Vtec) Flush

func (s *Vtec) Flush()

func (*Vtec) Get

func (s *Vtec) Get(key string) *string

func (*Vtec) Set

func (s *Vtec) Set(key string, value string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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