Documentation
¶
Index ¶
- Constants
- Variables
- type Connector
- func (c *Connector) Close() error
- func (c *Connector) HTTPClient() *common.HTTPClient
- func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient
- func (c *Connector) ListObjectMetadata(ctx context.Context, objectNames []string) (*common.ListObjectMetadataResult, error)
- func (c *Connector) Provider() providers.Provider
- func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)
- func (c *Connector) String() string
- func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)
- type Option
Constants ¶
View Source
const ( ModuleUser common.ModuleID = "user" ModuleMeeting common.ModuleID = "meeting" )
View Source
const (
DefaultPageSize = 300
)
Variables ¶
View Source
var ( ObjectNameContactGroup = "contacts_groups" // nolint: gochecknoglobals ObjectNameUser = "users" // nolint: gochecknoglobals ObjectNameGroup = "groups" // nolint: gochecknoglobals )
View Source
var ObjectNameToResponseField = common.ModuleObjectNameToFieldName{ ModuleMeeting: datautils.NewDefaultMap(map[string]string{ "device_groups": "groups", "archive_files": "meetings", "meeting_summaries": "summaries", "billing_report": "billing_reports", "activities_report": "activity_logs", }, func(objectName string) (fieldName string) { return objectName }, ), ModuleUser: datautils.NewDefaultMap(map[string]string{ "contacts_groups": "groups", }, func(objectName string) (fieldName string) { return objectName }, ), }
ObjectNameToResponseField maps ObjectName to the response field name which contains that object.
View Source
var SupportedModules = metadata.Schemas.ModuleRegistry() // nolint: gochecknoglobals
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { BaseURL string Client *common.JSONHTTPClient Module common.Module }
func NewConnector ¶
func (*Connector) HTTPClient ¶
func (c *Connector) HTTPClient() *common.HTTPClient
func (*Connector) JSONHTTPClient ¶
func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient
JSONHTTPClient returns the underlying JSON HTTP client.
func (*Connector) ListObjectMetadata ¶
func (*Connector) Read ¶
func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)
func (*Connector) Write ¶
func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)
type Option ¶
type Option = func(params *parameters)
func WithAuthenticatedClient ¶
func WithAuthenticatedClient(client common.AuthenticatedHTTPClient) Option
func WithClient ¶
func WithModule ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.