gozstyle

package
v0.0.0-...-acd003f Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	net.Conn
}

Client connection is just TCP

func NewZstyle

func NewZstyle(dial string) *Client

NewZstyle initializes a Zstyle connection

func (*Client) Exit

func (r *Client) Exit()

Exit closes the connection. NEVER FORGET TO DO THIS.

func (*Client) Get

func (r *Client) Get(key string) (string, error)

Get fetches a key with no default value (empty)

func (*Client) Getd

func (r *Client) Getd(key, defval string) (string, error)

Getd fetches a key with a default value

func (*Client) Ping

func (r *Client) Ping() bool

Ping checks for health

func (*Client) Put

func (r *Client) Put(key, val string)

Put puts a value into a key

func (*Client) ReadLine

func (r *Client) ReadLine() (string, error)

ReadLine reads a line. Use the real functions pls.

Jump to

Keyboard shortcuts

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