migrate

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	// contains filtered or unexported fields
}

Endpoint is the struct that define all endpoint delivered by the path /migrate

func New

func New(migrationService migrate.Migration) *Endpoint

New create an instance of the object Endpoint. You should have at most one instance of this object as it is only used by the struct api in the method api.registerRoute

func (*Endpoint) Migrate

func (e *Endpoint) Migrate(ctx echo.Context) error

Migrate is the endpoint that provides the Perses dashboard corresponding to the provided grafana dashboard.

func (*Endpoint) RegisterRoutes

func (e *Endpoint) RegisterRoutes(g *echo.Group)

RegisterRoutes is the method to use to register the routes prefixed by /api If the version is not v1, then look at the same method but in the package with the version as the name.

Jump to

Keyboard shortcuts

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