anchovies

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

README

anchovies

Import a Go package and start writing records. Persist data across processes based on unique machines.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Directory

func Directory() (string, error)

func Read

func Read(id UUID, onto interface{}) error

func SetDir

func SetDir(path string)

func Write

func Write(r Record) error

Types

type EmbedRecord

type EmbedRecord struct {
	ID UUID
}

func (*EmbedRecord) UUID

func (r *EmbedRecord) UUID() UUID

type Record

type Record interface {
	UUID() UUID
}

type UUID

type UUID string

func U

func U(s string) UUID

func (UUID) String

func (u UUID) String() string

Jump to

Keyboard shortcuts

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