config

package
v0.0.0-...-21f8c35 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config package ensures fluxy service is configured properly

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDSNConfig

func GetDSNConfig() string

GetDSNConfig constructs and returns a dsn using env config for database

func ServerConfig

func ServerConfig() string

ServerConfig returns an appserver string with host and port

func SetupConfig

func SetupConfig() error

SetupConfig configuration

Types

type Configuration

type Configuration struct {
	Server   ServerConfiguration
	Database DatabaseConfiguration
}

Configuration for fluxy

type DatabaseConfiguration

type DatabaseConfiguration struct {
	Driver   string
	Dbname   string
	Username string
	Password string
	Host     string
	Port     string
	LogMode  bool
}

DatabaseConfiguration is a config struct for postgres used by fluxy

type RedisConfiguration

type RedisConfiguration struct {
	Host     string
	Password string
}

RedisConfiguration is a config struct for redis used by fluxy

func GetRedisConfig

func GetRedisConfig() *RedisConfiguration

GetRedisConfig function returns the redis configuration

type ServerConfiguration

type ServerConfiguration struct {
	Port string
}

ServerConfiguration is a config struct for the fluxy server

Jump to

Keyboard shortcuts

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