apputil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package apputil provides basic application functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGUID

func GenerateGUID() string

GenerateGUID generates a globally unique identifier

func InitConfig

func InitConfig(projectName string, serviceName string, requiredKeys []string)

InitConfig inits Viper configuration, i.e. setting config search path to /etc/config/$SERVICE_NAME requiredKeys are checked for presence to ensure default configuration values if not found the service exits

func InitLogging

func InitLogging() *log.Entry

InitLogging inits apex/log as log handler and set default level to INFO

func InitLoggingWithLevel

func InitLoggingWithLevel(level log.Level) *log.Entry

InitLogging inits apex/log as log

func SetExplicitConfigFile

func SetExplicitConfigFile(name string)

SetExplicitConfigFile overrides the heuristics to identify the config file

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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