Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidFile error = rerror.NewE(i18n.T("invalid file")) ErrFailedToUploadFile error = rerror.NewE(i18n.T("failed to upload file")) ErrFileTooLarge error = rerror.NewE(i18n.T("file too large")) ErrFailedToDeleteFile error = rerror.NewE(i18n.T("failed to delete file")) ErrFileNotFound error = rerror.NewE(i18n.T("file not found")) ErrUnsupportedOperation error = rerror.NewE(i18n.T("unsupported operation")) )
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
UpdateUser(context.Context, accountgateway.AuthenticatorUpdateUserParam) (accountgateway.AuthenticatorUser, error)
}
type Container ¶
type Container struct { Authenticator Authenticator File File Mailer Mailer TaskRunner TaskRunner }
type File ¶
type File interface { ReadAsset(context.Context, string, string) (io.ReadCloser, error) GetAssetFiles(context.Context, string) ([]FileEntry, error) UploadAsset(context.Context, *file.File) (string, int64, error) DeleteAsset(context.Context, string, string) error GetURL(*asset.Asset) string IssueUploadAssetLink(context.Context, IssueUploadAssetParam) (*UploadAssetLink, error) UploadedAsset(context.Context, *asset.Upload) (*file.File, error) }
type IssueUploadAssetParam ¶
type IssueUploadAssetParam struct { UUID string Filename string ContentLength int64 ExpiresAt time.Time Cursor string }
func (IssueUploadAssetParam) ContentType ¶
func (p IssueUploadAssetParam) ContentType() string
type TaskRunner ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package gatewaymock is a generated GoMock package.
|
Package gatewaymock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.