connections

package
v0.0.0-...-7853e9f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

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

func AddressFromString

func AddressFromString(hostAndPort string) (*Address, error)

func NewAddress

func NewAddress(host string, port int) *Address

func (*Address) Host

func (a *Address) Host() string

func (*Address) Port

func (a *Address) Port() int

func (*Address) String

func (a *Address) String() string

type AtConnection

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

func NewAtConnection

func NewAtConnection(host string, port int, ctx context.Context, verbose bool) *AtConnection

func (*AtConnection) Connect

func (atconn *AtConnection) Connect() error

func (*AtConnection) Disconnect

func (atconn *AtConnection) Disconnect()

func (*AtConnection) ExecuteCommand

func (atconn *AtConnection) ExecuteCommand(command string, readTheResponse bool) (*Response, error)

func (*AtConnection) IsConnected

func (atconn *AtConnection) IsConnected() bool

func (*AtConnection) String

func (atconn *AtConnection) String() string

type AtRootConnection

type AtRootConnection struct {
	AtConnection *AtConnection
}

func GetAtRootConnectionInstance

func GetAtRootConnectionInstance() *AtRootConnection

func (*AtRootConnection) FindSecondary

func (arc *AtRootConnection) FindSecondary(atSign common.AtSign) (*Address, *exceptions.AtException)

func (*AtRootConnection) ParseRawResponse

func (arc *AtRootConnection) ParseRawResponse(rawResponse string) *Response

type AtSecondaryConnection

type AtSecondaryConnection struct {
	AtConnection *AtConnection
}

func NewAtSecondaryConnection

func NewAtSecondaryConnection(address Address, verbose bool) *AtSecondaryConnection

type Response

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

func NewResponse

func NewResponse() *Response

func ParseRawResponse

func ParseRawResponse(rawResponse string) (*Response, error)

func (*Response) GetErrorCode

func (r *Response) GetErrorCode() string

func (*Response) GetErrorText

func (r *Response) GetErrorText() string

func (*Response) GetException

func (r *Response) GetException() error

func (*Response) GetRawDataResponse

func (r *Response) GetRawDataResponse() string

func (*Response) GetRawErrorResponse

func (r *Response) GetRawErrorResponse() string

func (*Response) IsError

func (r *Response) IsError() bool

func (*Response) SetRawDataResponse

func (r *Response) SetRawDataResponse(s string) *Response

func (*Response) SetRawErrorResponse

func (r *Response) SetRawErrorResponse(s string) *Response

Jump to

Keyboard shortcuts

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