environment

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Overview

Package environment handles all variables that can be injected to Hera from the env and is passed to all packages.

Index

Constants

View Source
const (
	GrpcTransportProtocol = "grpc"
	HttpTransportProtocol = "http"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	PrivateKey          *rsa.PrivateKey
	PrivateKeyString    string
	PublicKey           *rsa.PublicKey
	PublicKeyString     string
	InMemoryConfigs     []string
	DefaultNamespace    string
	EncryptionKeys      []string
	HttpPublicEnabled   bool
	HttpAdminEnabled    bool
	GrpcPublicEnabled   bool
	GrpcAdminEnabled    bool
	AdminGrpcPort       string
	PublicGrpcPort      string
	AdminHttpPort       string
	PublicHttpPort      string
	LogMode             string
	Version             string
	ConfigPath          string
	DefaultBucket       string
	S3Endpoint          string
	S3Region            string
	S3Id                string
	S3Secret            string
	S3Token             string
	MinioEndpoint       string
	MinioRegion         string
	MinioId             string
	MinioSecret         string
	MinioToken          string
	OAuth2RedirectUrl   string
	StorageUrlExpiresIn time.Duration
}

func New

func New() (*Environment, error)

Jump to

Keyboard shortcuts

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