netxclient

package
v0.0.0-...-ff8f6dd Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Network      string
	DialTimeout  time.Duration
	WriteTimeout time.Duration
	ReadTimeout  time.Duration
	RetryDelay   time.Duration
	ReadSize     int
	MaxRetries   int
}

type NetClient

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

func NewNetClient

func NewNetClient(address string, conf Config) (*NetClient, error)

func (*NetClient) Close

func (nc *NetClient) Close() error

func (*NetClient) Config

func (nc *NetClient) Config() *netx.Config

func (*NetClient) Request

func (nc *NetClient) Request(data, dataType string, variableMap map[string]any) error

Jump to

Keyboard shortcuts

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