Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AvroSchema = &avro.Schema{
Definition: `{
"type": "record",
"name": "file-published",
"fields": [
{"name": "path", "type": "string"},
{"name": "etag", "type": "string"},
{"name": "type", "type": "string"},
{"name": "sizeInBytes", "type": "string"}
]
}`,
}
Functions ¶
This section is empty.
Types ¶
type FileEtagChange ¶
type FilePublished ¶
type FilePublished struct {
Path string `avro:"path"`
Type string `avro:"type"`
Etag string `avro:"etag"`
SizeInBytes string `avro:"sizeInBytes"`
}
FilePublished provides an avro structure for an image published event
type HTTPServer ¶
HTTPServer defines the required methods from the HTTP server
type StoredRegisteredMetaData ¶
type StoredRegisteredMetaData struct {
Path string `bson:"path" json:"path"`
IsPublishable bool `bson:"is_publishable" json:"is_publishable"`
CollectionID *string `bson:"collection_id,omitempty" json:"collection_id,omitempty"`
Title string `bson:"title" json:"title"`
SizeInBytes uint64 `bson:"size_in_bytes" json:"size_in_bytes"`
Type string `bson:"type" json:"type"`
Licence string `bson:"licence" json:"licence"`
LicenceUrl string `bson:"licence_url" json:"licence_url"`
CreatedAt time.Time `bson:"created_at" json:"-"`
LastModified time.Time `bson:"last_modified" json:"-"`
UploadCompletedAt *time.Time `bson:"upload_completed_at,omitempty" json:"-"`
PublishedAt *time.Time `bson:"published_at,omitempty" json:"-"`
DecryptedAt *time.Time `bson:"decrypted_at,omitempty" json:"-"`
State string `bson:"state" json:"state"`
Etag string `bson:"etag" json:"etag"`
}
Click to show internal directories.
Click to hide internal directories.