response

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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 BoxCreateFileResponse

type BoxCreateFileResponse struct {
	Entries []Entries `json:"entries"`
}

type BoxCredentialsResponse

type BoxCredentialsResponse struct {
	AccessToken  string `json:"access_token" mapstructure:"access_token"`
	RefreshToken string `json:"refresh_token" mapstructure:"refresh_token"`
	TokenType    string `json:"token_type" mapstructure:"token_type"`
	ExpiresIn    int64  `json:"expires_in" mapstructure:"expires_in"`
}

func (BoxCredentialsResponse) ToJSON

func (c BoxCredentialsResponse) ToJSON() []byte

type BoxFileResponse

type BoxFileResponse struct {
	ID            string          `json:"id"`
	Name          string          `json:"name"`
	Description   string          `json:"description"`
	Extension     string          `json:"extension"`
	ModifiedAt    string          `json:"modified_at"`
	FileVersion   BoxVersion      `json:"file_version"`
	VersionNumber string          `json:"version_number"`
	Parent        BoxParent       `json:"parent"`
	Permissions   BoxPermissions  `json:"permissions"`
	CreatedBy     BoxUserResponse `json:"created_by"`
}

func (BoxFileResponse) ToJSON

func (f BoxFileResponse) ToJSON() []byte

type BoxParent

type BoxParent struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

func (BoxParent) ToJSON

func (v BoxParent) ToJSON() []byte

type BoxPermissions

type BoxPermissions struct {
	CanAnnotate            bool `json:"can_annotate"`
	CanComment             bool `json:"can_comment"`
	CanDelete              bool `json:"can_delete"`
	CanDownload            bool `json:"can_download"`
	CanInviteCollaborator  bool `json:"can_invite_collaborator"`
	CanPreview             bool `json:"can_preview"`
	CanRename              bool `json:"can_rename"`
	CanSetShareAccess      bool `json:"can_set_share_access"`
	CanShare               bool `json:"can_share"`
	CanUpload              bool `json:"can_upload"`
	CanViewAnnotationsAll  bool `json:"can_view_annotations_all"`
	CanViewAnnotationsSelf bool `json:"can_view_annotations_self"`
}

func (BoxPermissions) ToJSON

func (v BoxPermissions) ToJSON() []byte

type BoxUserResponse

type BoxUserResponse struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Language string `json:"language"`
}

func (BoxUserResponse) ToJSON

func (u BoxUserResponse) ToJSON() []byte

type BoxVersion

type BoxVersion struct {
	ID   string `json:"id"`
	Type string `json:"type"`
}

func (BoxVersion) ToJSON

func (v BoxVersion) ToJSON() []byte

type BuildConfigResponse

type BuildConfigResponse struct {
	jwt.RegisteredClaims
	Document     Document     `json:"document"`
	DocumentType string       `json:"documentType"`
	EditorConfig EditorConfig `json:"editorConfig"`
	Type         string       `json:"type"`
	Token        string       `json:"token,omitempty"`
	Session      bool         `json:"is_session,omitempty"`
	ServerURL    string       `json:"server_url"`
}

func (BuildConfigResponse) ToJSON

func (r BuildConfigResponse) ToJSON() []byte

type CallbackResponse

type CallbackResponse struct {
	Error int `json:"error"`
}

func (CallbackResponse) ToJSON

func (c CallbackResponse) 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 EditorConfig

type EditorConfig struct {
	User          User          `json:"user"`
	CallbackURL   string        `json:"callbackUrl"`
	Customization Customization `json:"customization"`
	Lang          string        `json:"lang,omitempty"`
}

type Entries

type Entries struct {
	ID string `json:"id"`
}

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"`
	ExpiresAt    int64  `json:"expires_at" mapstructure:"expires_at"`
}

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