client

package module
v0.0.0-...-8e7d150 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TcpClient

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

func NewTcpClient

func NewTcpClient(host string) (*TcpClient, error)

func (*TcpClient) AuthWithUserPassPair

func (c *TcpClient) AuthWithUserPassPair(user, pass string) error

func (*TcpClient) Close

func (c *TcpClient) Close() error

Send sends command string to establised connection

func (*TcpClient) Get

func (c *TcpClient) Get(key string) (*msg_protocol.GetResponse, error)

func (*TcpClient) Send

func (c *TcpClient) Send(name string, s ...string) error

Send sends command string to establised connection

func (*TcpClient) Set

func (c *TcpClient) Set(key string, value string) (*msg_protocol.SetResponse, error)

Jump to

Keyboard shortcuts

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