Documentation ¶
Index ¶
- func CreateUrl(url string, size int64, t pbHelper.MediaType, userId int64) error
- func ExistsUrl(url string) bool
- func GetUserUploadSizeIn24(userId int64) (int64, error)
- func SetUrlOwner(url string, owner MediaOwner) error
- func SetUrlState(url string, s MediaState)
- type MediaOwner
- type MediaState
- type UrlEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserUploadSizeIn24 ¶
func SetUrlOwner ¶
func SetUrlOwner(url string, owner MediaOwner) error
func SetUrlState ¶
func SetUrlState(url string, s MediaState)
Types ¶
type MediaOwner ¶
type MediaOwner uint8
const ( None MediaOwner = iota PhotoMedia VideoMedia MusicMedia ProfilePhoto ChannelPhoto VideoThumbnail PlaylistThumbnail )
type UrlEntry ¶
type UrlEntry struct { Id string `bson:"_id,omitempty"` Url string `bson:"url"` Size int64 `bson:"size"` /// byte Type pbHelper.MediaType `bson:"media_type"` State MediaState `bson:"media_state"` Owner MediaOwner `bson:"media_owner"` UserId int64 `bson:"user_id"` CreatedAt time.Time `bson:"created_at"` }
Click to show internal directories.
Click to hide internal directories.