Documentation ¶
Index ¶
- func New() *types.Attachment
- func Validate(c *types.Attachment) *httptypes.CommonError
- func Wrap(c *types.Attachment) mycontent.Data
- type Wrapper
- func (c *Wrapper) CreatedTime() time.Time
- func (c *Wrapper) EndTime() time.Time
- func (c *Wrapper) ID() string
- func (c *Wrapper) InternalPath() string
- func (c *Wrapper) MainRefID() string
- func (c *Wrapper) OwnerID() string
- func (c *Wrapper) SetInternalPath(path string)
- func (c *Wrapper) SetSize(size int64)
- func (c *Wrapper) SetType(contentType string)
- func (c *Wrapper) SetURL(path string)
- func (c *Wrapper) Size() int64
- func (c *Wrapper) StartTime() time.Time
- func (c *Wrapper) Type() string
- func (c *Wrapper) URL() string
- func (c *Wrapper) WithCreatedTime(t time.Time) mycontent.Data
- func (c *Wrapper) WithEndTime(t time.Time) mycontent.Data
- func (c *Wrapper) WithID(id string) mycontent.Data
- func (c *Wrapper) WithOwnerID(id string) mycontent.Data
- func (c *Wrapper) WithStartTime(t time.Time) mycontent.Data
- func (c *Wrapper) WithURL(url string) mycontent.Data
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() *types.Attachment
func Validate ¶
func Validate(c *types.Attachment) *httptypes.CommonError
Types ¶
type Wrapper ¶
type Wrapper struct {
*types.Attachment
}
wrapped provides functionalities that are required by the usecases
func (*Wrapper) CreatedTime ¶
func (*Wrapper) InternalPath ¶
func (*Wrapper) SetInternalPath ¶
Click to show internal directories.
Click to hide internal directories.