Documentation
¶
Index ¶
- Constants
- func NewWebHelpDeskDestination(destinationConfig personnel_sync.DestinationConfig) (personnel_sync.Destination, error)
- type User
- type WebHelpDesk
- func (w *WebHelpDesk) ApplyChangeSet(changes personnel_sync.ChangeSet, eventLog chan<- personnel_sync.EventLogItem) personnel_sync.ChangeResults
- func (w *WebHelpDesk) CreateUser(person personnel_sync.Person, counter *uint64, wg *sync.WaitGroup, ...)
- func (w *WebHelpDesk) ForSet(syncSetJson json.RawMessage) error
- func (w *WebHelpDesk) GetIDField() string
- func (w *WebHelpDesk) ListUsers() ([]personnel_sync.Person, error)
- func (w *WebHelpDesk) UpdateUser(person personnel_sync.Person, counter *uint64, wg *sync.WaitGroup, ...)
Constants ¶
View Source
const ClientsAPIPath = "/ra/Clients"
View Source
const DefaultBatchDelaySeconds = 60
View Source
const DefaultBatchSize = 50
View Source
const DefaultListClientsPageLimit = 100
Variables ¶
This section is empty.
Functions ¶
func NewWebHelpDeskDestination ¶
func NewWebHelpDeskDestination(destinationConfig personnel_sync.DestinationConfig) (personnel_sync.Destination, error)
Types ¶
type User ¶
type User struct { ID int `json:"id,omitempty"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Username string `json:"username"` }
In WebHelpDesk the basic user is called a "Client", so this is not an API Client
type WebHelpDesk ¶
type WebHelpDesk struct { URL string Username string Password string ListClientsPageLimit int BatchSize int BatchDelaySeconds int }
func (*WebHelpDesk) ApplyChangeSet ¶
func (w *WebHelpDesk) ApplyChangeSet( changes personnel_sync.ChangeSet, eventLog chan<- personnel_sync.EventLogItem) personnel_sync.ChangeResults
func (*WebHelpDesk) CreateUser ¶
func (w *WebHelpDesk) CreateUser( person personnel_sync.Person, counter *uint64, wg *sync.WaitGroup, eventLog chan<- personnel_sync.EventLogItem)
func (*WebHelpDesk) ForSet ¶
func (w *WebHelpDesk) ForSet(syncSetJson json.RawMessage) error
func (*WebHelpDesk) GetIDField ¶
func (w *WebHelpDesk) GetIDField() string
func (*WebHelpDesk) ListUsers ¶
func (w *WebHelpDesk) ListUsers() ([]personnel_sync.Person, error)
func (*WebHelpDesk) UpdateUser ¶
func (w *WebHelpDesk) UpdateUser( person personnel_sync.Person, counter *uint64, wg *sync.WaitGroup, eventLog chan<- personnel_sync.EventLogItem)
Click to show internal directories.
Click to hide internal directories.