client

package module
v0.0.0-...-577bb4b Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

provides a go module to establish connection to dare-db

Index

Constants

View Source
const DefaultAddr = "localhost:2420"
View Source
const DefaultAddrSSL = "localhost:2420"
View Source
const DefaultConnectTimeout = time.Duration(9 * time.Second)
View Source
const DefaultIdleCliTimeout = time.Duration(60 * time.Second)
View Source
const DefaultRequestTimeout = time.Duration(9 * time.Second)

Variables

This section is empty.

Functions

func Escape

func Escape(any string) string

escape before sending

func EscapeCRLF

func EscapeCRLF(any string) string

func EscapeDOT

func EscapeDOT(any string) string

func EscapeSEM

func EscapeSEM(any string) string

func UnEscape

func UnEscape(any string) string

unescape after retrieval

func UnEscapeCRLF

func UnEscapeCRLF(any string) string

func UnEscapeDOT

func UnEscapeDOT(any string) string

func UnEscapeSEM

func UnEscapeSEM(any string) string

Types

type Client

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

func NewClient

func NewClient(opts *Options) (*Client, error)

func (*Client) Connect

func (c *Client) Connect(client *Client) (*Client, error)

func (*Client) Del

func (c *Client) Del(key string) (string, error)

func (*Client) Get

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

func (*Client) Set

func (c *Client) Set(key string, value string) (string, error)

func (*Client) Transport

func (c *Client) Transport()

type Options

type Options struct {
	Addr        string
	Mode        int
	SSL         bool
	SSLinsecure bool
	Auth        string
	Daemon      bool
	TestWorker  bool
	Stop        chan struct{}
}

Jump to

Keyboard shortcuts

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