appconfig

package
v0.0.0-...-d2a45df Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 11 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 {
	Server struct {
		Env      string
		Host     string
		GrpcPort string
		HttpPort string
	}

	Logger struct {
		OutputPath        string
		Level             string
		DisableStackTrace bool
	}

	AccessLogger struct {
		OutputPath        string
		Level             string
		DisableStackTrace bool
	}

	AadhaarCacheStore struct {
		Type  string
		Redis struct {
			Host     string
			Password string
			DB       int
		}
	}
	// contains filtered or unexported fields
}

func Init

func Init() *Config

func (Config) Close

func (c Config) Close()

func (Config) GetAadhaarCacheStore

func (c Config) GetAadhaarCacheStore() service.AadhaarCacheStore

func (Config) GetAccessLogger

func (c Config) GetAccessLogger() *zap.Logger

func (Config) GetLogger

func (c Config) GetLogger() *zap.Logger

Jump to

Keyboard shortcuts

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