types

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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 ByCidResponse struct {
	Name string
	CID  string
}

type ConfYaml

type ConfYaml struct {
	Estuary SectionEstuary `yaml:"estuary"`
	Email   EmailStat      `yaml:"email"`
	Stat    SectionStat    `yaml:"stat"`
}

ConfYaml

type ConfigResponse

type ConfigResponse struct {
	Status     string
	StatusCode int
	Message    string
	Data       ConfYaml
}

type Content

type Content struct {
	Name string `json:"name"`
	CID  string `json:"cid"`
}

type Contents

type Contents []Content

type EmailStat

type EmailStat struct {
	EmailType string      `yaml:"emailType"`
	From      string      `yaml:"from"`
	SMTP      SectionSMTP `yaml:"smtp"`
}

EmailStat is sub section of config.

type Error

type Error struct {
	Code    int64  `json:"code"`
	Reason  string `json:"reason"`
	Details string `json:"details"`
}

type EstuaryError

type EstuaryError struct {
	Error Error `json:"error"`
}

type EstuaryUploadResponse

type EstuaryUploadResponse struct {
	Message  string
	Status   string
	Contents []UploadResponse
}

type FetchKeysResponse

type FetchKeysResponse struct {
	PublicKey string `json:"publicKey"`
	Files     int    `json:"files"`
}

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 GenerateKeyPairResponse struct {
	Status     string
	StatusCode int
	Message    string
	Data       Keys
}

type Keys

type Keys struct {
	PublicKey  string `json:"PublicKey"`
	PrivateKey string `json:"PrivateKey"`
}

type ListContentResponse

type ListContentResponse struct {
	Status     string
	StatusCode int
	Message    string
	Data       FileData
}

type ListKeys

type ListKeys []FetchKeysResponse

type ListKeysResponse

type ListKeysResponse struct {
	Status     string
	StatusCode int
	Message    string
	Data       ListKeys
}

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 SectionBucket struct {
	Name       string `yaml:"name"`
	Scope      string `yaml:"scope"`
	Collection string `yaml:"collection"`
}

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 SectionSMTP struct {
	Server   string `yaml:"server"`
	Port     int64  `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

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 {
	Status     string
	StatusCode int
	Message    string
}

type UploadContentResponse

type UploadContentResponse struct {
	Status     string
	StatusCode int
	Message    string
	Data       Uuid
}

type UploadResponse

type UploadResponse struct {
	CID string
	ID  int
}

type Uuid

type Uuid struct {
	Uuid string
}

Jump to

Keyboard shortcuts

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