initializers

package
v0.0.0-...-6b1b1cb Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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