database

package
v0.0.0-...-5a2a765 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextKey

type ContextKey string

type Database

type Database interface {
	Save(*Message) error
	Read(*Message) error
}

type Message

type Message struct {
	UUID      string
	Keyspace  string
	Key       string
	Name      string
	Operation string
	Value     int64
}

Message struct for doing an operation.

type MessageFn

type MessageFn func(*Message) bool

type Stream

type Stream interface {
	Save(*Message) error
	Read(context.Context, MessageFn) error
	StartWork(Database)
	StopWork()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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