Documentation ¶
Index ¶
- type CallbackResponse
- type ConfigResponse
- type ConvertResponse
- type Customization
- type Document
- type DropboxDownloadResponse
- type DropboxFileResponse
- type DropboxUserName
- type DropboxUserResponse
- type EditorConfig
- type GenericReponse
- type Goback
- type MicroError
- type Permissions
- type User
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackResponse ¶
type CallbackResponse struct {
Error int `json:"error"`
}
func (CallbackResponse) ToJSON ¶
func (c CallbackResponse) ToJSON() []byte
type ConfigResponse ¶
type ConfigResponse struct { jwt.RegisteredClaims Document Document `json:"document"` DocumentType string `json:"documentType"` EditorConfig EditorConfig `json:"editorConfig"` Type string `json:"type"` Token string `json:"token,omitempty"` ServerURL string `json:"server_url"` }
func (ConfigResponse) ToJSON ¶
func (r ConfigResponse) ToJSON() []byte
type ConvertResponse ¶
func (ConvertResponse) ToJSON ¶
func (r ConvertResponse) ToJSON() []byte
type Customization ¶
type Document ¶
type Document struct { FileType string `json:"fileType"` Key string `json:"key"` Title string `json:"title"` URL string `json:"url"` Permissions Permissions `json:"permissions"` }
type DropboxDownloadResponse ¶
type DropboxDownloadResponse struct {
Link string `json:"link"`
}
type DropboxFileResponse ¶
type DropboxUserName ¶
type DropboxUserResponse ¶
type DropboxUserResponse struct { AccountID string `json:"account_id"` Email string `json:"email"` Name DropboxUserName `json:"name"` Locale string `json:"locale"` }
type EditorConfig ¶
type EditorConfig struct { User User `json:"user"` CallbackURL string `json:"callbackUrl"` Customization Customization `json:"customization"` Lang string `json:"lang,omitempty"` }
type GenericReponse ¶
func (GenericReponse) ToJSON ¶
func (r GenericReponse) ToJSON() []byte
type MicroError ¶
type MicroError struct { ID string `json:"id"` Code int `json:"code"` Detail string `json:"detail"` Status string `json:"status"` }
func (MicroError) ToJSON ¶
func (e MicroError) ToJSON() []byte
type Permissions ¶
type Permissions struct { Comment bool `json:"comment"` Copy bool `json:"copy"` DeleteCommentAuthorOnly bool `json:"deleteCommentAuthorOnly"` Download bool `json:"download"` Edit bool `json:"edit"` EditCommentAuthorOnly bool `json:"editCommentAuthorOnly"` FillForms bool `json:"fillForms"` ModifyContentControl bool `json:"modifyContentControl"` ModifyFilter bool `json:"modifyFilter"` Print bool `json:"print"` Review bool `json:"review"` }
type UserResponse ¶
type UserResponse struct { ID string `json:"id" mapstructure:"id"` AccessToken string `json:"access_token" mapstructure:"access_token"` RefreshToken string `json:"refresh_token" mapstructure:"refresh_token"` TokenType string `json:"token_type" mapstructure:"token_type"` Scope string `json:"scope" mapstructure:"scope"` Expiry string `json:"expiry" mapstructure:"expiry"` }
func (UserResponse) ToJSON ¶
func (ur UserResponse) ToJSON() []byte
Click to show internal directories.
Click to hide internal directories.