messages

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	Auth0UserID      string `json:"auth0UserID"`
	Bookmarked       bool   `json:"bookmarked,omitempty"`
	Event            string `json:"event"`
	ID               string `json:"id,omitempty"`
	Parent           string `json:"parent,omitempty"`
	SourceDeviceDesc string `json:"sourceDeviceDesc"`
	SourceDeviceID   string `json:"sourceDeviceID"`
	Type             string `json:"type,omitempty"`
	Version          string `json:"version,omitempty"`
	VissibleName     string `json:"vissibleName,omitempty"`
}

Attributes child object

type BlobStorageRequest added in v0.0.5

type BlobStorageRequest struct {
	Method       string `json:"http_method"`
	Initial      bool   `json:"initial_sync"`
	RelativePath string `json:"relative_path"`
}

BlobStorageRequest else

type BlobStorageResponse added in v0.0.5

type BlobStorageResponse struct {
	Expires        string `json:"expires"`
	Method         string `json:"method"`
	RelativePath   string `json:"relative_path"`
	URL            string `json:"url"`
	MaxRequestSize int64  `json:"maxuploadsize_bytes,omitempty"`
}

BlobStorageResponse what else

type DeviceTokenRequest

type DeviceTokenRequest struct {
	Code       string `json:"code"`
	DeviceDesc string `json:"deviceDesc"`
	DeviceID   string `json:"deviceID"`
}

DeviceTokenRequest give me token

type HostResponse

type HostResponse struct {
	Host   string `json:"Host"`
	Status string `json:"Status"`
}

HostResponse what the host responded

type IDRequest added in v0.0.4

type IDRequest struct {
	ID string `json:"ID"`
}

IDRequest request with only an id

type Integration added in v0.0.6

type Integration struct {
	Added    time.Time `json:"added"`
	ID       string    `json:"id"`
	Issues   string    `json:"issues"`
	Name     string    `json:"name"`
	Provider string    `json:"provider"`
	UserID   string    `json:"userID"`
}

type IntegrationFile added in v0.0.6

type IntegrationFile struct {
	DateChanged      time.Time `json:"dateChanged"`
	FileExtension    string    `json:"fileExtension"`
	FileID           string    `json:"fileID"`
	FileType         string    `json:"fileType"`
	ID               string    `json:"id"`
	Name             string    `json:"name"`
	ProvidedFileType string    `json:"providedFileType"`
	Size             int       `json:"size"`
	SourceFileType   string    `json:"sourceFileType"`
}

type IntegrationFolder added in v0.0.6

type IntegrationFolder struct {
	FolderID   string               `json:"folderID"`
	ID         string               `json:"id"`
	Name       string               `json:"name"`
	Path       string               `json:"path"`
	Files      []*IntegrationFile   `json:"files"`
	SubFolders []*IntegrationFolder `json:"subFolders"`
}

func NewIntegrationFolder added in v0.0.8

func NewIntegrationFolder(id, name string) *IntegrationFolder

type IntegrationMetadata added in v0.0.8

type IntegrationMetadata struct {
	FileType  string `json:"fileType"`
	ID        string `json:"id"`
	Name      string `json:"name"`
	Thumbnail string `json:"thumbnail"`
}

type IntegrationsResponse added in v0.0.5

type IntegrationsResponse struct {
	Integrations []Integration `json:"integrations"`
}

IntegrationsResponse integrations

type NotificationMessage

type NotificationMessage struct {
	Attributes   Attributes `json:"attributes"`
	MessageID    string     `json:"messageId,omitempty"`
	MessageID2   string     `json:"message_id,omitempty"`
	MessageID3   string     `json:"messageid,omitempty"`
	PublishTime  string     `json:"publishTime,omitempty"`
	PublishTime2 string     `json:"publish_time,omitempty"`
}

NotificationMessage child object

type RawMetadata added in v0.0.5

type RawMetadata struct {
	ID                string `json:"ID"`
	Version           int    `json:"Version"`
	Message           string `json:"Message"`
	Success           bool   `json:"Success"`
	BlobURLGet        string `json:"BlobURLGet"`
	BlobURLGetExpires string `json:"BlobURLGetExpires"`
	ModifiedClient    string `json:"ModifiedClient"`
	Type              string `json:"Type"`
	VissibleName      string `json:"VissibleName"`
	CurrentPage       int    `json:"CurrentPage"`
	Bookmarked        bool   `json:"Bookmarked"`
	Parent            string `json:"Parent"`
}

RawMetadata just a raw document

type StatusResponse

type StatusResponse struct {
	ID      string `json:"ID"`
	Message string `json:"Message"`
	Success bool   `json:"Success"`
	Version int    `json:"Version"`
}

StatusResponse what else

type SyncCompleted added in v0.0.5

type SyncCompleted struct {
	ID         string `json:"id"`
	Generation int64  `json:"generation"`
}

SyncCompleted sync ended

type SyncCompletedRequestV2 added in v0.0.10

type SyncCompletedRequestV2 struct {
	Generation int64 `json:"generation"`
}

SyncCompleted sync ended

type UploadRequest

type UploadRequest struct {
	ID      string `json:"ID"`
	Parent  string `json:"Parent"`
	Type    string `json:"Type"`
	Version int    `json:"Version"`
}

UploadRequest upload reuquest

type UploadResponse

type UploadResponse struct {
	ID                string `json:"ID"`
	Message           string `json:"Mesasge"`
	Success           bool   `json:"Success"`
	BlobURLPut        string `json:"BlobURLPut"`
	BlobURLPutExpires string `json:"BlobURLPutExpires"`
	Version           int    `json:"Version"`
}

UploadResponse surprise

type WsMessage

type WsMessage struct {
	Message      NotificationMessage `json:"message"`
	Subscription string              `json:"subscription,omitempty"`
}

WsMessage websocket notification

Jump to

Keyboard shortcuts

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