Documentation ¶
Index ¶
- type ByCID
- type ByCidResponse
- type ConfYaml
- type ConfigResponse
- type Content
- type Contents
- type EmailStat
- type Error
- type EstuaryError
- type EstuaryUploadResponse
- type FetchKeysResponse
- type FileData
- type FileMetadata
- type GenerateKeyPairResponse
- type Keys
- type ListContentResponse
- type ListKeys
- type ListKeysResponse
- type RetrieveByUUIDContentResponse
- type SectionBadgerDB
- type SectionBucket
- type SectionCouchbase
- type SectionEstuary
- type SectionSMTP
- type SectionStat
- type SharedResponse
- type UploadContentResponse
- type UploadResponse
- type Uuid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByCID ¶
type ByCID []struct { Content ByCidResponse }
type ByCidResponse ¶
type ConfYaml ¶
type ConfYaml struct { Estuary SectionEstuary `yaml:"estuary"` Email EmailStat `yaml:"email"` Stat SectionStat `yaml:"stat"` }
ConfYaml
type ConfigResponse ¶
type EmailStat ¶
type EmailStat struct { EmailType string `yaml:"emailType"` From string `yaml:"from"` SMTP SectionSMTP `yaml:"smtp"` }
EmailStat is sub section of config.
type EstuaryError ¶
type EstuaryError struct {
Error Error `json:"error"`
}
type EstuaryUploadResponse ¶
type EstuaryUploadResponse struct { Message string Status string Contents []UploadResponse }
type FetchKeysResponse ¶
type FileData ¶
type FileData []FileMetadata
type FileMetadata ¶
type FileMetadata struct { Uuid string `json:"uuid"` PublicKey string `json:"publicKey"` Md5Hash string `json:"md5Hash"` Timestamp int64 `json:"timestamp"` UploadedAt string `json:"uploadedAt"` Name string `json:"name"` Size int `json:"size"` FileType string `json:"fileType"` Cid []string `json:"cid"` Dek []byte `json:"dek"` DekType string `json:"dekType"` KekType string `json:"kekType"` }
type GenerateKeyPairResponse ¶
type ListContentResponse ¶
type ListKeys ¶
type ListKeys []FetchKeysResponse
type ListKeysResponse ¶
type RetrieveByUUIDContentResponse ¶
type RetrieveByUUIDContentResponse struct { Status string StatusCode int Message string Data FileMetadata }
type SectionBadgerDB ¶
type SectionBadgerDB struct {
Path string `yaml:"path"`
}
SectionBadgerDB is sub section of config.
type SectionBucket ¶
type SectionCouchbase ¶
type SectionCouchbase struct { Host string `yaml:"host"` Username string `yaml:"username"` Password string `yaml:"password"` Bucket SectionBucket `yaml:"bucket"` }
SectionCouchbae is sub section of config.
type SectionEstuary ¶
type SectionEstuary struct { BaseApiUrl string `yaml:"base_api_url"` UploadApiUrl string `yaml:"upload_api_url"` GatewayApiUrl string `yaml:"gateway_api_url"` CdnApiUrl string `yaml:"cdn_api_url"` Token string `yaml:"token"` }
SectionEstuary is sub section of config.
type SectionSMTP ¶
type SectionStat ¶
type SectionStat struct { BadgerDB SectionBadgerDB `yaml:"badgerdb"` Couchbase SectionCouchbase `yaml:"couchbase"` StorageType string `yaml:"storageType"` KekType string `yaml:"kekType"` }
SectionStat is sub section of config.
type SharedResponse ¶
type SharedResponse struct {}
type UploadContentResponse ¶
type UploadResponse ¶
Click to show internal directories.
Click to hide internal directories.