commands

package
v0.0.0-...-cc0b965 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

Command represents a single command to be executed and then for the process to end.

func NewCommand

func NewCommand() *Command

NewCommand returns a Command with db and logger attached.

func (*Command) BillingCheck

func (c *Command) BillingCheck(stripeSecretKey string)

BillingCheck checks stripe billing for descrepencies.

func (*Command) Migrate

func (c *Command) Migrate(db *sql.DB, driver string, direction migrate.MigrationDirection)

Migrate migrates the database using migrations in migrations/ directory. If direction is up, no limit is applied to the number of migrations, if direction is down, only 1 down migration is executed.

Jump to

Keyboard shortcuts

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