Documentation ¶
Index ¶
- Constants
- type FileBox
- func (fb *FileBox) String() string
- func (fb *FileBox) ToBase64() (string, error)
- func (fb *FileBox) ToBytes() ([]byte, error)
- func (fb *FileBox) ToDataURL() (string, error)
- func (fb *FileBox) ToFile(filePath string, overwrite bool) error
- func (fb *FileBox) ToJSON() (string, error)
- func (fb *FileBox) ToQRCode() (string, error)
- type FileBoxOptions
- type FileBoxOptionsBase64
- type FileBoxOptionsCommon
- type FileBoxOptionsQRCode
- type FileBoxOptionsUrl
- type FileBoxType
Constants ¶
View Source
const ( FileBoxTypeUnknown FileBoxType = 0 FileBoxTypeBase64 = 1 FileBoxTypeUrl = 2 FileBoxTypeQRCode = 3 FileBoxTypeBuffer = 4 FileBoxTypeFile = 5 FileBoxTypeStream = 6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBox ¶
type FileBox struct { Name string // contains filtered or unexported fields }
FileBox struct
func FromBase64 ¶
func FromQRCode ¶
type FileBoxOptions ¶
type FileBoxOptions struct { FileBoxOptionsCommon FileBoxOptionsBase64 FileBoxOptionsQRCode FileBoxOptionsUrl }
type FileBoxOptionsBase64 ¶
type FileBoxOptionsBase64 struct {
Base64 string `json:"base64"`
}
type FileBoxOptionsCommon ¶
type FileBoxOptionsCommon struct { Name string `json:"Name"` Metadata map[string]interface{} `json:"metadata"` BoxType FileBoxType `json:"boxType"` }
type FileBoxOptionsQRCode ¶
type FileBoxOptionsQRCode struct {
QrCode string `json:"qrCode"`
}
type FileBoxOptionsUrl ¶
type FileBoxType ¶
type FileBoxType uint8
func (FileBoxType) String ¶
func (i FileBoxType) String() string
Click to show internal directories.
Click to hide internal directories.