bootstrap

package
v0.0.0-...-fbafe68 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 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 Application

type Application struct {
	Env *Env
	Db  *Database
}

func App

func App() Application

type Database

type Database struct {
	Client         *dynamodb.DynamoDB
	BooksTableName string
}

func NewDynamoDbDatabase

func NewDynamoDbDatabase(env *Env) *Database

type DatabaseTable

type DatabaseTable struct {
	Name string
}

type Env

type Env struct {
	AppEnv            string `mapstructure:"ENVIRONMENT"`
	ServerPort        string `mapstructure:"SERVER_PORT"`
	ContextTimeout    int    `mapstructure:"CONTEXT_TIMEOUT"`
	BackendServiceUrl string `mapstructure:"BACKEND_SERVICE_URL"`
}

func NewEnv

func NewEnv() *Env

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳