config

package
v0.0.0-...-061a1bd Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 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 AwsS3Config

type AwsS3Config struct {
	Endpoint    string
	Bucket      string
	AccessKey   string
	SecretKey   string
	MaxFileSize int64
	IsMock      bool
}

type Config

type Config struct {
	Server   ServerConfig
	Postgres PostgresConfig
	Storage  AwsS3Config
	Queue    SQS
}

func Init

func Init() Config

type PostgresConfig

type PostgresConfig struct {
	Host     string
	Port     string
	Username string
	Password string
	Name     string
	Driver   string
	IsMock   bool
}

func (PostgresConfig) ToString

func (pc PostgresConfig) ToString() string

func (PostgresConfig) ToStringWithDbName

func (pc PostgresConfig) ToStringWithDbName() string

type SQS

type SQS struct {
	IsMock    bool
	Region    string
	AccessKey string
	SecretKey string
	QueueUrl  string
}

type ServerConfig

type ServerConfig struct {
	Name    string
	Address string
	Port    string
}

Jump to

Keyboard shortcuts

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