Documentation ¶
Index ¶
- Variables
- type AgentService
- func (s AgentService) AcceptMaintenanceNoticeForSelf(ctx context.Context, maintenanceNoticeID five9types.MaintenanceNoticeID) (five9types.MaintenanceNoticeInfo, error)
- func (s AgentService) GetAllMaintenanceNoticesForSelf(ctx context.Context) ([]five9types.MaintenanceNoticeInfo, error)
- func (s *AgentService) GetAllReasonCodes(ctx context.Context) ([]five9types.ReasonCodeInfo, error)
- type ConfigFunc
- type Error
- type Service
- type SupervisorService
- func (s *SupervisorService) GetAllDomainUsers(ctx context.Context) ([]five9types.AgentInfo, error)
- func (s *SupervisorService) GetAllQueues(ctx context.Context) ([]five9types.QueueInfo, error)
- func (s *SupervisorService) GetAllReasonCodes(ctx context.Context) ([]five9types.ReasonCodeInfo, error)
- func (s *SupervisorService) GetOwnUserInfo(ctx context.Context) (five9types.AgentInfo, error)
- func (s *SupervisorService) GetReasonCodeInfoMap(ctx context.Context) (map[five9types.ReasonCodeID]five9types.ReasonCodeInfo, error)
- func (s *SupervisorService) GetStatisticsFilterSettings(ctx context.Context) ([]five9types.AgentInfo, error)
- func (s *SupervisorService) SetStatisticsFilterSettings(ctx context.Context, payload any) ([]five9types.AgentInfo, error)
- func (s *SupervisorService) StartWebsocket(parentCtx context.Context) error
- func (s *SupervisorService) UpdateAgentState(ctx context.Context, agentID five9types.UserID) (five9types.UserFullStateInfo, error)
- func (s *SupervisorService) WSACDState(ctx context.Context) (map[string]five9types.ACDState, error)
- func (s *SupervisorService) WSAgentState(ctx context.Context) (map[five9types.UserName]five9types.AgentState, error)
- func (s *SupervisorService) WSAgentStatistics(ctx context.Context) (map[five9types.UserName]five9types.AgentStatistics, error)
Constants ¶
This section is empty.
Variables ¶
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) UnmarshalJSON ¶
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 (s *SupervisorService) GetReasonCodeInfoMap(ctx context.Context) (map[five9types.ReasonCodeID]five9types.ReasonCodeInfo, error)
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 (s *SupervisorService) WSAgentState(ctx context.Context) (map[five9types.UserName]five9types.AgentState, error)
func (*SupervisorService) WSAgentStatistics ¶ added in v0.0.7
func (s *SupervisorService) WSAgentStatistics(ctx context.Context) (map[five9types.UserName]five9types.AgentStatistics, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.