Fiber Boilerplate
  • Introduction
  • Installation
  • Features
  • Project Structure
  • Project Flow
  • Deployment
  • Configuration File
    • Auth
    • Database
    • Log
    • Mail
    • PayPal
    • Profiler
    • Server
    • Session
    • Storage
    • Token
  • Additional Libraries
  • Project Dependencies
Powered by GitBook
On this page

Was this helpful?

  1. Configuration File

Storage

type StorageConfig struct {
   *redis.Storage
   Driver   string `yaml:"driver" env:"STORAGE_DRIVER"`
   Name     string `yaml:"name" env:"STORAGE_NAME"`
   Host     string `yaml:"host" env:"STORAGE_HOST"`
   Username string `yaml:"username" env:"STORAGE_USERNAME"`
   Password string `yaml:"password" env:"STORAGE_PASSWORD"`
   Port     int    `yaml:"port" env:"STORAGE_PORT"`
   DB       int    `yaml:"db" env:"STORAGE_DB"`
}
PreviousSessionNextToken

Last updated 4 years ago

Was this helpful?