client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "1.0.1"

Functions

func ArrToHeaders

func ArrToHeaders(a []string, sep string) options.Headers

Types

type Client

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

func NewTunlClient

func NewTunlClient(opt *options.Options, version string) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) SetHttpRequestReceiver

func (c *Client) SetHttpRequestReceiver(receiver HttpRequestReceiver)

type HttpRequestReceiver

type HttpRequestReceiver func(r *commands.HttpRequest, body []byte, d time.Duration)

Jump to

Keyboard shortcuts

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