Documentation ¶ Index ¶ type Direction func (r Direction) MarshalJSON() ([]byte, error) func (r Direction) String() string 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 Source Files ¶ View all Source files direction.go main.go Click to show internal directories. Click to hide internal directories.