server

package
v0.0.0-...-4ab98ed Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: CC0-1.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(port *int)

Types

type KeyValuePair

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

type LogEntry

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

type Mutation

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

type Store

type Store struct {
	Wal *Wal
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Store

func (*Store) AsyncList

func (s *Store) AsyncList() <-chan KeyValuePair

func (*Store) Delete

func (s *Store) Delete(key string) (string, error)

func (*Store) Get

func (s *Store) Get(key string) (string, error)

func (*Store) Set

func (s *Store) Set(key string, value string) (string, error)

type Wal

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

func BuildWal

func BuildWal(fileName string, memstore *map[string]string) *Wal

func NewWal

func NewWal(fileName string) *Wal

func (*Wal) Write

func (wal *Wal) Write(key string, value string)

Jump to

Keyboard shortcuts

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