server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecCmd = make(map[string]ExecCmdFunc)

Functions

func AddExecCommand

func AddExecCommand(cmd string, cmdFunc ExecCmdFunc)

Types

type ExecCmdFunc

type ExecCmdFunc func(*JulenKv, []string) (interface{}, error)

type JulenKv

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

func Open

func Open(config config.Config) (*JulenKv, error)

func (*JulenKv) Close

func (db *JulenKv) Close() error

func (*JulenKv) Get

func (db *JulenKv) Get(key []byte) ([]byte, error)

func (*JulenKv) Set

func (db *JulenKv) Set(key, value []byte) error

type Server

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

func NewServer

func NewServer(config config.Config) (*Server, error)

func (*Server) Listen

func (s *Server) Listen(addr string)

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

Directories

Path Synopsis
ds

Jump to

Keyboard shortcuts

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