Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterListeners ¶ added in v0.22.0
func RegisterListeners()
Types ¶
type AuthURL ¶
type AuthURL struct {
URL string `json:"url"`
}
AuthURL is returned to the user when requesting the auth url
type FileMigratorWeb ¶ added in v0.18.0
type FileMigratorWeb struct {
MigrationStruct func() migration.FileMigrator
}
func (*FileMigratorWeb) Migrate ¶ added in v0.18.0
func (fw *FileMigratorWeb) Migrate(c echo.Context) error
Migrate calls the migration method
func (*FileMigratorWeb) RegisterRoutes ¶ added in v0.18.0
func (fw *FileMigratorWeb) RegisterRoutes(g *echo.Group)
RegisterRoutes registers all routes for migration
func (*FileMigratorWeb) Status ¶ added in v0.18.0
func (fw *FileMigratorWeb) Status(c echo.Context) error
Status returns whether or not a user has already done this migration
type MigrationDoneNotification ¶ added in v0.22.0
type MigrationDoneNotification struct {
MigratorName string
}
MigrationDoneNotification represents a MigrationDoneNotification notification
func (*MigrationDoneNotification) Name ¶ added in v0.22.0
func (n *MigrationDoneNotification) Name() string
Name returns the name of the notification
func (*MigrationDoneNotification) ToDB ¶ added in v0.22.0
func (n *MigrationDoneNotification) ToDB() interface{}
ToDB returns the MigrationDoneNotification notification in a format which can be saved in the db
func (*MigrationDoneNotification) ToMail ¶ added in v0.22.0
func (n *MigrationDoneNotification) ToMail() *notifications.Mail
ToMail returns the mail notification for MigrationDoneNotification
type MigrationFailedNotification ¶ added in v0.24.0
MigrationFailedNotification represents a MigrationFailedNotification notification
func (*MigrationFailedNotification) Name ¶ added in v0.24.0
func (n *MigrationFailedNotification) Name() string
Name returns the name of the notification
func (*MigrationFailedNotification) ToDB ¶ added in v0.24.0
func (n *MigrationFailedNotification) ToDB() interface{}
ToDB returns the MigrationFailedNotification notification in a format which can be saved in the db
func (*MigrationFailedNotification) ToMail ¶ added in v0.24.0
func (n *MigrationFailedNotification) ToMail() *notifications.Mail
ToMail returns the mail notification for MigrationFailedNotification
type MigrationFailedReportedNotification ¶ added in v0.24.0
type MigrationFailedReportedNotification struct {
MigratorName string
}
MigrationFailedReportedNotification represents a MigrationFailedReportedNotification notification
func (*MigrationFailedReportedNotification) Name ¶ added in v0.24.0
func (n *MigrationFailedReportedNotification) Name() string
Name returns the name of the notification
func (*MigrationFailedReportedNotification) ToDB ¶ added in v0.24.0
func (n *MigrationFailedReportedNotification) ToDB() interface{}
ToDB returns the MigrationFailedReportedNotification notification in a format which can be saved in the db
func (*MigrationFailedReportedNotification) ToMail ¶ added in v0.24.0
func (n *MigrationFailedReportedNotification) ToMail() *notifications.Mail
ToMail returns the mail notification for MigrationFailedReportedNotification
type MigrationListener ¶ added in v0.22.0
type MigrationListener struct { }
MigrationListener represents a listener
func (*MigrationListener) Handle ¶ added in v0.22.0
func (s *MigrationListener) Handle(msg *message.Message) (err error)
Handle is executed when the event MigrationListener listens on is fired
func (*MigrationListener) Name ¶ added in v0.22.0
func (s *MigrationListener) Name() string
Name defines the name for the MigrationListener listener
type MigrationRequestedEvent ¶ added in v0.22.0
type MigrationRequestedEvent struct { Migrator interface{} `json:"migrator"` User *user.User `json:"user"` MigratorKind string `json:"migrator_kind"` }
MigrationRequestedEvent represents a MigrationRequestedEvent event
func (*MigrationRequestedEvent) Name ¶ added in v0.22.0
func (t *MigrationRequestedEvent) Name() string
Name defines the name for MigrationRequestedEvent
type MigrationWeb ¶
MigrationWeb holds the web migration handler
func (*MigrationWeb) AuthURL ¶
func (mw *MigrationWeb) AuthURL(c echo.Context) error
AuthURL is the web handler to get the auth url
func (*MigrationWeb) Migrate ¶
func (mw *MigrationWeb) Migrate(c echo.Context) error
Migrate calls the migration method
func (*MigrationWeb) RegisterMigrator ¶ added in v0.22.0
func (mw *MigrationWeb) RegisterMigrator(g *echo.Group)
RegisterMigrator registers all routes for migration
func (*MigrationWeb) Status ¶
func (mw *MigrationWeb) Status(c echo.Context) error
Status returns whether or not a user has already done this migration