handler

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2023 License: AGPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 MigrationWeb

type MigrationWeb struct {
	MigrationStruct func() migration.Migrator
}

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) RegisterRoutes

func (mw *MigrationWeb) RegisterRoutes(g *echo.Group)

RegisterRoutes 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL