config

package
v0.0.0-...-ed165e9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Postges struct {
		Name string
		Host string
		Port string
		User string
		Pass string
	}

	MongoDB struct {
		Host string
		Pass string
		User string
		Name string
	}

	App struct {
		Secret string
		Host   string
		Port   string
	}

	Admin struct {
		Email    string
		Password string
	}

	Loki struct {
		Username string
		Password string
		Host     string
		Port     string
	}
}

func GetConfig

func GetConfig() *App

type MongoDB

type MongoDB struct {
	Conn *mongo.Client
	// contains filtered or unexported fields
}

func InitializeMongo

func InitializeMongo(conf *App) *MongoDB

func (*MongoDB) NewMongo

func (m *MongoDB) NewMongo()

type Postgres

type Postgres struct {
	DB *gorm.DB
	// contains filtered or unexported fields
}

func InitializePostgres

func InitializePostgres(conf *App) *Postgres

func (*Postgres) Migration

func (p *Postgres) Migration()

func (*Postgres) NewConnection

func (p *Postgres) NewConnection()

func (*Postgres) Seeder

func (p *Postgres) Seeder() error

Jump to

Keyboard shortcuts

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