domain

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	// {Identity/Uri}
	Id              string              `json:"id" bson:"_id,omitempty"`
	ActivePublishId *primitive.ObjectID `json:"activePublishId" bson:"activePublishId,omitempty"`
	Identity        string              `json:"identity" bson:"identity"`
	SpaceId         string              `json:"spaceId" bson:"spaceId"`
	ObjectId        string              `json:"objectId" bson:"objectId"`
	Uri             string              `json:"uri" bson:"uri"`
	Timestamp       int64               `json:"timestamp" bson:"timestamp"`
}

type ObjectWithPublish

type ObjectWithPublish struct {
	Object
	Publish *Publish
}

type Publish

type Publish struct {
	Id        primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	ObjectId  string             `json:"objectId" bson:"objectId"`
	Status    PublishStatus      `json:"status" bson:"status"`
	Version   string             `json:"version" bson:"version"`
	UploadKey string             `json:"uploadKey" bson:"uploadKey"`
	Size      int64              `json:"size" bson:"size"`
}

type PublishStatus

type PublishStatus uint8
const (
	PublishStatusCreated PublishStatus = iota
	PublishStatusPublished
	PublishStatusReadyToDelete
)

Jump to

Keyboard shortcuts

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