Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
Env string `env:"ENV" default:"PROD" help:"It should be PROD or DEV"`
Port int `env:PORT default:9200 help:"Defaulted to 9200"`
Key string `env:KEY required:"true" help:"It should be 32 char"`
PublicKey string
PrivateKey ed25519.PrivateKey
PostgresEnable bool `env:"POSTGRES_ENABLE" required:"false" help:"The CircleCI API domain of the test instance."`
PostgresHost string `env:"POSTGRES_HOST" required:"false" help:"The CircleCI API domain of the test instance."`
PostgresPort int `env:"POSTGRES_PORT" default:5432 required:"false" help:"The CircleCI API domain of the test instance."`
PostgresUser string `env:"POSTGRES_USER" required:"false" help:"The CircleCI API domain of the test instance."`
PostgresPass string `env:"POSTGRES_PASS" required:"false" help:"The CircleCI API domain of the test instance."`
PostgresDB string `env:"POSTGRES_DB" required:"false" help:"The CircleCI API domain of the test instance."`
T string `short:"t"`
}
func Setup ¶
func Setup() *Environment
func (*Environment) Sign ¶
func (st *Environment) Sign(data []byte) string
Click to show internal directories.
Click to hide internal directories.