env

package
v0.0.0-...-a2be96e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewS3Bucket

func NewS3Bucket(cfg *Config) (*blob.Bucket, error)

Types

type Config

type Config struct {
	Postgres struct {
		DSN string
	}
	Auth struct {
		Provider string
		Client   string
		Secret   string
	}
	S3 struct {
		Endpoint string
		Key      string
		Secret   string
		Token    string
		SSL      bool
		Bucket   string `default:"builds"`
		Region   string `default:"us-east-1"`
		Test     bool
	}
}

func NewConfig

func NewConfig() (*Config, error)

type Postgres

type Postgres struct {
	sql.Handler
	*transactor.Transactor
}

func NewPostgres

func NewPostgres(conf *Config) (*Postgres, error)

Directories

Path Synopsis
migration

Jump to

Keyboard shortcuts

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