typpostgres

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DBName   string `required:"true"`
	User     string `required:"true" default:"postgres"`
	Password string `required:"true" default:"pgpass"`
	Host     string `default:"localhost"`
	Port     int    `default:"5432"`
}

Config is postgres configuration

type Module

type Module struct {
	DBName string
}

Module of postgres

func (Module) BuildCommands added in v0.8.9

func (p Module) BuildCommands(c typcore.Cli) []*cli.Command

BuildCommands of module

func (Module) Configure added in v0.8.9

func (p Module) Configure() (prefix string, spec, loadFn interface{})

Configure the module

func (Module) Destroy added in v0.8.9

func (p Module) Destroy() []interface{}

Destroy dependencies

func (Module) DockerCompose added in v0.8.9

func (p Module) DockerCompose() typdocker.Compose

DockerCompose template

func (Module) Prepare added in v0.8.9

func (p Module) Prepare() []interface{}

Prepare the module

func (Module) Provide added in v0.8.9

func (p Module) Provide() []interface{}

Provide the dependencies

Jump to

Keyboard shortcuts

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