migrator

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerClosed = errors.New("migrator: Server closed")

ErrServerClosed is returned by the Server after a call to Shutdown or Close.

View Source
var ListenTimeout = 120 * time.Second

Functions

func CleanUp

func CleanUp()

Types

type Server

type Server struct {
	Addr      string // TCP address to listen on
	Verbose   bool
	Debug     bool
	LastError error
	// contains filtered or unexported fields
}

func New

func New(port int, debug bool) *Server

func (*Server) Close

func (srv *Server) Close()

func (*Server) Listen

func (srv *Server) Listen() (err error)

func (*Server) Serve

func (srv *Server) Serve()

Jump to

Keyboard shortcuts

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