persistence

package
v0.0.0-...-b8ed415 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoKV

type GoKV struct {
	Ctx   context.Context
	Store gokv.Store
}

GoKV store, methods implement repository.Actions interface.

func (*GoKV) Create

func (g *GoKV) Create(id string, val repository.Record) error

Create a record.

func (*GoKV) Delete

func (g *GoKV) Delete(id string) error

Delete a record.

func (*GoKV) Get

func (g *GoKV) Get(id string) (repository.Record, error)

Get a record.

func (*GoKV) Update

func (g *GoKV) Update(id string, val repository.Record) error

Update a record.

Jump to

Keyboard shortcuts

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