Documentation
¶
Index ¶
- Variables
- func Air() error
- func Bufgen() error
- func Clean()
- func Dev()
- func Dockerfiles() error
- func Exec(command string) error
- func Gen() error
- func Gobin(name string) error
- func Gobins()
- func Lint() error
- func Pbgen()
- func Psql() error
- func Pwhash(password string)
- func RunWith(env map[string]string, cmd string, args ...string) error
- func Start()
- type AirInfoParams
- type Build
- type Client
- type Db
- type DockerfileParams
- type Env
- type GobinPkgParams
- type Sqlc
Constants ¶
This section is empty.
Variables ¶
var ClientDirs []string
var DirsToCleanUp []string
var DockerfileSettings []*DockerfileParams
var GobinPkgs []*GobinPkgParams
var LoadEnv = func() {}
var MainPackage string
Functions ¶
func Air ¶
func Air() error
Air launches the server process and keeps it live-reloading.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Bufgen ¶
func Bufgen() error
Bufgen generates protocol buffer binding code.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Clean ¶
func Clean()
Clean cleans up generated files.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Dev ¶
func Dev()
Dev is an alias for 'air'.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Dockerfiles ¶
func Dockerfiles() error
Dockerfiles generates dockerfiles from the template.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Exec ¶
Exec (command string) executes the given command prioritizing binaries in .gobin/ directory.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Gen ¶
func Gen() error
Gen generates binding codes.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Gobin ¶
Gobin installs the Go binary with the given command name or package name.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Gobins ¶
func Gobins()
Gobins installs necessary Go binaries.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Lint ¶
func Lint() error
Lint analyses.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Pbgen ¶
func Pbgen()
Pbgen is an alias of 'bufgen'.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Psql ¶
func Psql() error
Psql executes psql(1) command on the database defined in .env* file
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func Pwhash ¶
func Pwhash(password string)
Pwhash (password string) prints the bcrypt hash of the specified argument.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
Types ¶
type AirInfoParams ¶
var AirInfo *AirInfoParams
type Build ¶
noinspection GoUnusedExportedType, GoUnnecessarilyExportedIdentifiers
type Db ¶
noinspection GoUnusedExportedType, GoUnnecessarilyExportedIdentifiers
func (Db) Converge ¶
Converge converges a PostgreSQL database.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func (Db) Create ¶
Create creates a new PostgreSQL database.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func (Db) Down ¶
Down rolls back the database version by 1.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func (Db) Drop ¶
Drop drops a PostgreSQL database if exists.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func (Db) Dump ¶
Dump dumps a database.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func (Db) Fix ¶
Fix applies sequential ordering to migrations.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func (Db) Migrate ¶
Migrate migrates the database to the most recent version available.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func (Db) New ¶
New (name string) creates a new migration file with the current timestamp.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
func (Db) Reset ¶
Reset rolls back all migrations.
noinspection GoUnusedExportedFunction, GoUnnecessarilyExportedIdentifiers
type DockerfileParams ¶
type Env ¶
noinspection GoUnusedExportedType, GoUnnecessarilyExportedIdentifiers