gosvl

package module
v0.0.0-...-c62ddfe Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 8 Imported by: 0

README

gosvl

gosvl (go structure value store lib)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicTransaction

type BasicTransaction struct {
	Key   []byte
	Value []byte
}

type SVL

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

func (*SVL) Add

func (s *SVL) Add(value any) error

func (*SVL) DisableIncrement

func (s *SVL) DisableIncrement(value any)

func (*SVL) Get

func (s *SVL) Get(value any) error

func (*SVL) SetIncrement

func (s *SVL) SetIncrement(value any, increment func(value any) any) error

type SvlBuilder

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

func NewSVL

func NewSVL() *SvlBuilder

func (*SvlBuilder) Build

func (s *SvlBuilder) Build() (*SVL, error)

func (*SvlBuilder) ImplementEncoder

func (s *SvlBuilder) ImplementEncoder(f func(e any) ([]byte, error)) *SvlBuilder

func (*SvlBuilder) ImplementGet

func (s *SvlBuilder) ImplementGet(f func(t []BasicTransaction) ([]BasicTransaction, error)) *SvlBuilder

func (*SvlBuilder) ImplementLog

func (s *SvlBuilder) ImplementLog(f func(v ...any)) *SvlBuilder

func (*SvlBuilder) ImplementSet

func (s *SvlBuilder) ImplementSet(f func(t []BasicTransaction) error) *SvlBuilder

func (*SvlBuilder) SetBadger

func (s *SvlBuilder) SetBadger(db *badger.DB) *SvlBuilder

func (*SvlBuilder) SetEncodeElements

func (s *SvlBuilder) SetEncodeElements(elements bool) *SvlBuilder

func (*SvlBuilder) UseGobEncDec

func (s *SvlBuilder) UseGobEncDec() *SvlBuilder

func (*SvlBuilder) UseJsonEncDec

func (s *SvlBuilder) UseJsonEncDec() *SvlBuilder

func (*SvlBuilder) UseLog

func (s *SvlBuilder) UseLog() *SvlBuilder

Jump to

Keyboard shortcuts

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