bootstrap

package
v0.0.0-...-d34172e Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 8 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
	UsersTableName    string
	SessionsTableName 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"`
	AuthServiceUrl       string        `mapstructure:"AUTH_SERVICE_URL"`
	TokenSymmetricKey    string        `mapstructure:"TOKEN_SYMMETRIC_KEY"`
	AccessTokenDuration  time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"`
	RefreshTokenDuration time.Duration `mapstructure:"REFRESH_TOKEN_DURATION"`
}

func NewEnv

func NewEnv() *Env

Jump to

Keyboard shortcuts

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