five9

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownUserID          error = errors.New("unknown userID provided")
	ErrWebSocketCacheNotReady error = errors.New("webSocket cache is not ready")
	ErrWebSocketCacheStale    error = errors.New("webSocket cache is stale")
)

Functions

This section is empty.

Types

type AgentService added in v0.0.4

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

func (AgentService) AcceptMaintenanceNoticeForSelf added in v0.0.4

func (s AgentService) AcceptMaintenanceNoticeForSelf(
	ctx context.Context,
	maintenanceNoticeID five9types.MaintenanceNoticeID,
) (five9types.MaintenanceNoticeInfo, error)

func (AgentService) GetAllMaintenanceNoticesForSelf added in v0.0.4

func (s AgentService) GetAllMaintenanceNoticesForSelf(ctx context.Context) ([]five9types.MaintenanceNoticeInfo, error)

func (*AgentService) GetAllReasonCodes added in v0.0.4

func (s *AgentService) GetAllReasonCodes(ctx context.Context) ([]five9types.ReasonCodeInfo, error)

type ConfigFunc

type ConfigFunc func(*Service)

func AddRequestPreprocessor

func AddRequestPreprocessor(things ...func(*http.Request) error) ConfigFunc

func SetRoundTripper added in v0.0.4

func SetRoundTripper(roundTripper http.RoundTripper) ConfigFunc

func SetWebsocketHandler added in v0.0.4

func SetWebsocketHandler(w webSocketHandler) ConfigFunc

type Error

type Error struct {
	StatusCode int    `json:"status_code"`
	Body       []byte `json:"body"`
	Message    string `json:"message"`
}

func (*Error) Error

func (err *Error) Error() string

func (*Error) UnmarshalJSON

func (err *Error) UnmarshalJSON(b []byte) error

type Service

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

func NewService

func NewService(
	creds five9types.PasswordCredentials,
	configFuncs ...ConfigFunc,
) *Service

func (*Service) Agent added in v0.0.4

func (s *Service) Agent() *AgentService

func (*Service) Supervisor

func (s *Service) Supervisor() *SupervisorService

type SupervisorService

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

func (*SupervisorService) GetAllDomainUsers added in v0.0.4

func (s *SupervisorService) GetAllDomainUsers(ctx context.Context) ([]five9types.AgentInfo, error)

func (*SupervisorService) GetAllQueues added in v0.0.7

func (s *SupervisorService) GetAllQueues(ctx context.Context) ([]five9types.QueueInfo, error)

func (*SupervisorService) GetAllReasonCodes added in v0.0.7

func (s *SupervisorService) GetAllReasonCodes(ctx context.Context) ([]five9types.ReasonCodeInfo, error)

func (*SupervisorService) GetOwnUserInfo added in v0.0.7

func (s *SupervisorService) GetOwnUserInfo(ctx context.Context) (five9types.AgentInfo, error)

func (*SupervisorService) GetReasonCodeInfoMap added in v0.0.8

func (*SupervisorService) GetStatisticsFilterSettings added in v0.0.7

func (s *SupervisorService) GetStatisticsFilterSettings(ctx context.Context) ([]five9types.AgentInfo, error)

func (*SupervisorService) SetStatisticsFilterSettings added in v0.0.7

func (s *SupervisorService) SetStatisticsFilterSettings(ctx context.Context, payload any) ([]five9types.AgentInfo, error)

func (*SupervisorService) StartWebsocket

func (s *SupervisorService) StartWebsocket(parentCtx context.Context) error

func (*SupervisorService) UpdateAgentState added in v0.0.7

func (s *SupervisorService) UpdateAgentState(ctx context.Context, agentID five9types.UserID) (five9types.UserFullStateInfo, error)

func (*SupervisorService) WSACDState added in v0.0.7

func (s *SupervisorService) WSACDState(ctx context.Context) (map[string]five9types.ACDState, error)

func (*SupervisorService) WSAgentState added in v0.0.4

func (*SupervisorService) WSAgentStatistics added in v0.0.7

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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