migration

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(d RouteDependecy)

Types

type Handler

type Handler struct {
	Resp       handler.ResponseInterface
	Log        log.LoggerInterface
	AppContext context.AppContext
}

func NewHandler

func NewHandler(d HandlerDependency) Handler

func (Handler) DoMigration added in v1.2.0

func (h Handler) DoMigration() handler.EndpointHandler

func (Handler) GetAvailableMigration added in v1.2.0

func (h Handler) GetAvailableMigration() handler.EndpointHandler

func (Handler) UpMigration

func (h Handler) UpMigration() handler.EndpointHandler

type HandlerDependency

type HandlerDependency struct {
	Logger     log.LoggerInterface
	AppContext context.AppContext
}

type MigrationRoute

type MigrationRoute struct {
	Context    router.Context
	Logger     log.LoggerInterface
	AppContext context.AppContext
}

func (MigrationRoute) GetListMigration added in v1.2.0

func (r MigrationRoute) GetListMigration(h Handler) router.EndpointInfo

func (MigrationRoute) InitEndpoints

func (r MigrationRoute) InitEndpoints()

func (MigrationRoute) PostDoMigration added in v1.2.0

func (r MigrationRoute) PostDoMigration(h Handler) router.EndpointInfo

func (MigrationRoute) PostUpMigration

func (r MigrationRoute) PostUpMigration(h Handler) router.EndpointInfo

type RouteDependecy

type RouteDependecy struct {
	Context    router.Context
	Logger     log.LoggerInterface
	AppContext context.AppContext
}

Jump to

Keyboard shortcuts

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