enum

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int

Direction defines the type of the migration direction.

const (
	// DirectionUp indicates the direction type is forward.
	DirectionUp Direction = iota + 1

	// DirectionDown indicates the direction type is backward (rollback).
	DirectionDown
)

func (Direction) MarshalJSON

func (r Direction) MarshalJSON() ([]byte, error)

MarshalJSON marshals the enum as a quoted json string.

func (Direction) String

func (r Direction) String() string

Jump to

Keyboard shortcuts

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