configProvider

package
v0.0.0-...-85f45e4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// RedisHost - The host of the Redis server.
	RedisHost string
	// RedisPort - The port of the Redis server.
	RedisPort uint32
	// RedisUsername - The username of the Redis server.
	RedisUsername string
	// RedisPassword - The password of the Redis server.
	RedisPassword string
	// RedisPassword - The logical database inside the Redis server.
	RedisDatabase uint32
	// RedisUseTLS - Whether to enable TLS for redis.
	RedisUseTLS bool
	// Port - The port on which application server will listen if deployed using main.go.
	Port uint32
}

Config - Configuration for the application.

type ConfigProvider

type ConfigProvider interface {
	// Provide - Provides the configuration for the application.
	Provide() (Config, error)
}

ConfigProvider - Interface for providing configuration for the application.

func NewConfigProvider

func NewConfigProvider() ConfigProvider

NewConfigProvider - Constructs and returns a new ConfigProvider.

Jump to

Keyboard shortcuts

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