webhelpdesk

package
v5.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 internal.DestinationConfig) (internal.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 internal.ChangeSet,
	eventLog chan<- internal.EventLogItem) internal.ChangeResults

func (*WebHelpDesk) CreateUser

func (w *WebHelpDesk) CreateUser(
	person internal.Person,
	counter *uint64,
	wg *sync.WaitGroup,
	eventLog chan<- internal.EventLogItem)

func (*WebHelpDesk) ForSet

func (w *WebHelpDesk) ForSet(syncSetJson json.RawMessage) error

func (*WebHelpDesk) ListUsers

func (w *WebHelpDesk) ListUsers(desiredAttrs []string) ([]internal.Person, error)

func (*WebHelpDesk) UpdateUser

func (w *WebHelpDesk) UpdateUser(
	person internal.Person,
	counter *uint64,
	wg *sync.WaitGroup,
	eventLog chan<- internal.EventLogItem)

Jump to

Keyboard shortcuts

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