config

package
v0.0.0-...-31ddaea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatabaseMongodb

func InitDatabaseMongodb() *mongo.Database

Types

type AwsConfig

type AwsConfig struct {
	AccessKey      string
	AccessSecret   string
	Region         types.BucketLocationConstraint
	Bucket         string
	RequestTimeout time.Duration
	Directory      string
}

type RabbitMQConfig

type RabbitMQConfig struct {
	Host     string
	Port     string
	User     string
	Password string
	Exchange string
}

type StorageConfig

type StorageConfig struct {
	HttpPort  string
	RpcPort   string
	Timeout   time.Duration
	MaxUpload int
	Aws       AwsConfig
	RabbitMQ  RabbitMQConfig
}

func Storage

func Storage() *StorageConfig

Jump to

Keyboard shortcuts

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