config

package
v0.0.0-...-7a1ea33 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database        Database
	Server          Server
	ImageRepo       ImageRepo
	ProductsService ProductsService
}

func New

func New(envVarsPayload []byte) (Config, error)

type Database

type Database struct {
	Url    string
	Driver string
}

type ImageRepo

type ImageRepo struct {
	Url string
}

type ProductsService

type ProductsService struct {
	GetProductsLimit int
}

type Server

type Server struct {
	Port      int
	Framework string
}

Jump to

Keyboard shortcuts

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