server

package
v0.0.0-...-a5d9027 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParams        = errors.New("ERR params invalid")
	ErrRespType      = errors.New("ERR resp type invalid")
	ErrCmdNotSupport = errors.New("ERR command not supported")
)

Functions

func ClientHandler

func ClientHandler(conn net.Conn, app *App)

Types

type App

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

func NewApp

func NewApp(conf *config.Config) *App

initialize an app

func (*App) Run

func (app *App) Run()

type Client

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

func (*Client) FlushResp

func (c *Client) FlushResp(resp interface{}) error

func (*Client) Resp

func (c *Client) Resp(resp interface{}) error

func (*Client) Resp1

func (c *Client) Resp1(resp interface{}) error

treat string as bulk array

type Command

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

Jump to

Keyboard shortcuts

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