datastore

package
v0.0.0-...-b2063a2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ProvideDBConnection

func ProvideDBConnection() gorm.DB

func ProvideSessionStore

func ProvideSessionStore() redis.Store

Types

type DBConfig

type DBConfig struct {
	DBHost     string `mapstructure:"DB_HOST"`
	DBUsername string `mapstructure:"DB_USERNAME"`
	DBPassword string `mapstructure:"DB_PASSWORD"`
}

type SessionConfig

type SessionConfig struct {
	SessionAddress  string `mapstructure:"SESSION_ADDRESS"`
	SessionPassword string `mapstructure:"SESSION_PASSWORD"`
	SessionKey      string `mapstructure:"SESSION_KEY"`
}

Jump to

Keyboard shortcuts

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