response

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

type ConvertResponse struct {
	FileURL  string `json:"fileUrl"`
	FileType string `json:"fileType"`
}

func (ConvertResponse) ToJSON

func (r ConvertResponse) ToJSON() []byte

type Customization

type Customization struct {
	Goback        Goback `json:"goback"`
	Plugins       bool   `json:"plugins"`
	HideRightMenu bool   `json:"hideRightMenu"`
}

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 DropboxFileResponse struct {
	ID          string `json:"id"`
	CModified   string `json:"client_modified"`
	SModified   string `json:"server_modified"`
	PathLower   string `json:"path_lower"`
	PathDisplay string `json:"path_display"`
	Rev         string `json:"rev"`
	Name        string `json:"name"`
	Size        int    `json:"size"`
}

type DropboxUserName

type DropboxUserName struct {
	DisplayName  string `json:"display_name"`
	FamiliarName string `json:"familiar_name"`
	GivenName    string `json:"given_name"`
	Surname      string `json:"surname"`
}

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

type GenericReponse struct {
	Error  int    `json:"error"`
	Reason string `json:"reason,omitempty"`
}

func (GenericReponse) ToJSON

func (r GenericReponse) ToJSON() []byte

type Goback

type Goback struct {
	RequestClose bool `json:"requestClose"`
}

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 User

type User struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

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

Jump to

Keyboard shortcuts

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