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) DomainReasonCodes(ctx context.Context) map[five9types.ReasonCodeID]five9types.ReasonCodeInfo
- func (s *SupervisorService) GetAllDomainUsers(ctx context.Context) ([]five9types.AgentInfo, error)
- func (s *SupervisorService) StartWebsocket(parentCtx context.Context) error
- func (s *SupervisorService) WSAgentState(ctx context.Context) (map[five9types.UserName]five9types.AgentState, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWebSocketCacheNotReady error = errors.New("webSocket cache is not ready")
)
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) DomainReasonCodes ¶ added in v0.0.2
func (s *SupervisorService) DomainReasonCodes(ctx context.Context) map[five9types.ReasonCodeID]five9types.ReasonCodeInfo
func (*SupervisorService) GetAllDomainUsers ¶ added in v0.0.4
func (s *SupervisorService) GetAllDomainUsers(ctx context.Context) ([]five9types.AgentInfo, error)
func (*SupervisorService) StartWebsocket ¶
func (s *SupervisorService) StartWebsocket(parentCtx context.Context) error
func (*SupervisorService) WSAgentState ¶ added in v0.0.4
func (s *SupervisorService) WSAgentState(ctx context.Context) (map[five9types.UserName]five9types.AgentState, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.