bootstrap

package
v0.0.0-...-c86accf Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewS3Client

func NewS3Client(env *Env) *s3.Client

Types

type Application

type Application struct {
	Env *Env
	S3  *s3.Client
}

func App

func App() Application

type Env

type Env struct {
	AppEnv      string `mapstructure:"APP_ENV"`
	Host        string `mapstructure:"HOST"`
	Port        string `mapstructure:"PORT"`
	S3HostAddr  string `mapstructure:"S3_HOST_ADDR"`
	S3AccessKey string `mapstructure:"S3_ACCESS_KEY"`
	S3SecretKey string `mapstructure:"S3_SECRET_KEY"`
	S3Region    string `mapstructure:"S3_REGION"`
}

func NewEnv

func NewEnv() *Env

Jump to

Keyboard shortcuts

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