protocol

package
v0.0.0-...-e2a4dfe Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: GPL-3.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Close() error

	// kv
	Del([]byte) error
	Set([]byte, []byte) error
	Get([]byte) ([]byte, error)

	// list
	Lpush([]byte, []byte) (uint64, error)
	Lrange([]byte, uint64, uint64) ([][]byte, error)
}

type Server

type Server interface {
	Run()
	Stop()
}

func New

func New(port int, db DB) Server

Jump to

Keyboard shortcuts

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