http

package
v1.153.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(service *migrate.Migrator)

Register for HTTP.

Types

type MigrateRequest

type MigrateRequest struct {
	Database string `json:"database,omitempty"`
	Version  uint64 `json:"version,omitempty"`
}

MigrateRequest for a specific database and version.

type MigrateResponse

type MigrateResponse struct {
	Meta      map[string]string `json:"meta,omitempty"`
	Migration *Migration        `json:"migration,omitempty"`
}

MigrateResponse for a specific database and version.

type Migration

type Migration struct {
	Database string   `json:"database,omitempty"`
	Logs     []string `json:"logs,omitempty"`
	Version  uint64   `json:"version,omitempty"`
}

Migration for a specific database and version with logs.

Jump to

Keyboard shortcuts

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