Documentation ¶
Index ¶
- Variables
- type Asset
- type Builder
- func (b *Builder) Build() (*Asset, error)
- func (b *Builder) ContentType(contentType string) *Builder
- func (b *Builder) CreatedAt(createdAt time.Time) *Builder
- func (b *Builder) ID(id ID) *Builder
- func (b *Builder) MustBuild() *Asset
- func (b *Builder) Name(name string) *Builder
- func (b *Builder) NewID() *Builder
- func (b *Builder) Size(size int64) *Builder
- func (b *Builder) Team(team TeamID) *Builder
- func (b *Builder) URL(url string) *Builder
- type ID
- type TeamID
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyTeamID = errors.New("require team id") ErrEmptyURL = errors.New("require valid url") ErrEmptySize = errors.New("file size cannot be zero") )
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.AssetIDFrom
View Source
var IDFromRef = id.AssetIDFromRef
View Source
var IDFromRefID = id.AssetIDFromRefID
View Source
var MustID = id.MustAssetID
View Source
var MustTeamID = id.MustTeamID
View Source
var NewID = id.NewAssetID
View Source
var NewTeamID = id.NewTeamID
View Source
var TeamIDFrom = id.TeamIDFrom
View Source
var TeamIDFromRef = id.TeamIDFromRef
View Source
var TeamIDFromRefID = id.TeamIDFromRefID
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
func (*Asset) ContentType ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) ContentType ¶
Click to show internal directories.
Click to hide internal directories.