Versions in this module Expand all Collapse all v1 v1.0.1 Feb 21, 2023 Changes in this version + const ConnClosed + const ConnOK + const ETB + const ETX + const RS + var ErrConnectionClosed = errors.New("connection closed") + var ErrHelloNotReceived = errors.New("hello not received") + func IsDecodingError(err error) bool + func LogLevelToString(l LogLevel) string + type AvayaError struct + Code string + func (e AvayaError) Error() string + type Client struct + func NewClient(addr string, opts ...Option) (*Client, error) + func (c *Client) AttachJob(ctx context.Context, jobName string) error + func (c *Client) AvailWork(ctx context.Context) error + func (c *Client) ConnectHeadset(ctx context.Context) error + func (c *Client) DetachJob(ctx context.Context) error + func (c *Client) DisconnectHeadset(ctx context.Context) error + func (c *Client) EchoOff(ctx context.Context) error + func (c *Client) EchoOn(ctx context.Context) error + func (c *Client) FinishedItem(ctx context.Context, compCode int) error + func (c *Client) FreeHeadset(ctx context.Context) error + func (c *Client) ListCallFields(ctx context.Context, listName string) ([]string, error) + func (c *Client) ListCallLists(ctx context.Context) ([]string, error) + func (c *Client) ListDataFields(ctx context.Context, listType ListType) ([]DataField, error) + func (c *Client) ListJobs(ctx context.Context, jobType JobType) ([]Job, error) + func (c *Client) ListKeys(ctx context.Context) ([]string, error) + func (c *Client) ListState(ctx context.Context) (*State, error) + func (c *Client) LogIoStart(ctx context.Context) error + func (c *Client) LogIoStop(ctx context.Context) error + func (c *Client) Logoff(ctx context.Context) error + func (c *Client) Logon(ctx context.Context, agentName string, password string) error + func (c *Client) NoFurtherWork(ctx context.Context) error + func (c *Client) Notifications(ctx context.Context) <-chan Notification + func (c *Client) ReadField(ctx context.Context, listType ListType, fieldName string) (*Field, error) + func (c *Client) ReadyNextItem(ctx context.Context) error + func (c *Client) ReleaseLine(ctx context.Context) error + func (c *Client) ReserveHeadset(ctx context.Context, headsetID int) error + func (c *Client) SetDataField(ctx context.Context, listType ListType, fieldName string) error + func (c *Client) SetNotifyKeyField(ctx context.Context, listType ListType, fieldName string) error + func (c *Client) Start() error + type DataField struct + Name string + type Event struct + Client string + InvokeID uint32 + IsIncomplete bool + Keyword string + ProcessID uint32 + Segments []string + Type EventType + func (e Event) IsDataMessage() bool + func (e Event) IsNotificationData() bool + func (e Event) IsNotificationError() bool + func (e Event) IsPending() bool + func (e Event) IsResponseError() bool + func (e Event) IsStart() bool + func (e Event) IsSuccessfulNotification() bool + func (e Event) IsSuccessfulResponse() bool + type EventType byte + const EventTypeBusy + const EventTypeCommand + const EventTypeData + const EventTypeNotification + const EventTypePending + const EventTypeResponse + type Field struct + Length int + Name string + Type FieldType + Value string + type FieldType string + const FieldTypeAlphanumeric + const FieldTypeCurrency + const FieldTypeDate + const FieldTypeFutureUse + const FieldTypeNumeric + type Job struct + Name string + Status StatusType + Type JobType + type JobType byte + const JobTypeAll + const JobTypeBlend + const JobTypeInbound + const JobTypeManaged + const JobTypeOutbound + type ListType byte + const ListTypeInbound + const ListTypeOutbound + type LogEntry struct + Fields map[string]interface{} + Level LogLevel + Message string + type LogHandler func(LogEntry) + type LogLevel int + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelNone + type Notification struct + Payload interface{} + Type NotificationType + type NotificationType string + const NotificationTypeAutoReleaseLine + const NotificationTypeCallNotify + const NotificationTypeHeadsetConnBroken + const NotificationTypeJobEnd + const NotificationTypeJobTransRequest + const NotificationTypeReceiveMessage + const NotificationTypeSystemError + type Option func(*Options) + func WithDecoder(decoder *encoding.Decoder) Option + func WithLogHandler(logLevel LogLevel, handler LogHandler) Option + func WithLogger() Option + func WithTimeout(timeout time.Duration) Option + func WithTlsPatched() Option + func WithTlsSkipVerify() Option + type Options struct + Decoder *encoding.Decoder + LogHandler LogHandler + LogLevel LogLevel + Timeout *time.Duration + TlsPatched bool + TlsSkipVerify bool + type State struct + JobName string + Type StateType + type StateType string + const StateTypeHasJoinedJob + const StateTypeHasSelectedJob + const StateTypeLoggedOn + const StateTypeOnCall + const StateTypeReadyForCall + type StatusType byte + const StatusTypeActive + const StatusTypeInactive v1.0.0 Jan 11, 2023