transport

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 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 Radix

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

Radix is an t38c.Executor implementation based on 'mediocregopher/radix' library.

func NewRadix

func NewRadix(addr string, size int, password *string) (*Radix, error)

NewRadix returns radix transport implementation with provided pool size.

func (*Radix) Close

func (r *Radix) Close() error

Close closes the connections. All future execution calls will return an error.

func (*Radix) Execute

func (r *Radix) Execute(ctx context.Context, command string, args ...string) ([]byte, error)

Execute executes command.

func (*Radix) ExecuteStream

func (r *Radix) ExecuteStream(ctx context.Context, handler func([]byte) error, command string, args ...string) error

ExecuteStream used for commands with streaming response. Creates a new connection for each stream.

Jump to

Keyboard shortcuts

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