config

package
v0.0.0-...-fd5b8e0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 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 Environment

type Environment struct {
	AppEnv    string
	AppName   string
	AppPort   string
	KafkaHost string
}

Environment is the struct that will hold the environment variables.

func NewEnvironment

func NewEnvironment() *Environment

NewEnvironment is the constructor for the Environment struct.

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is a wrapper for an logger library

func NewLogger

func NewLogger(isEnabled bool) (*Logger, error)

NewLogger creates a new logger instance

func (*Logger) Error

func (l *Logger) Error(message string)

Error logs an error message.

func (*Logger) Info

func (l *Logger) Info(message string)

Info logs an informational message.

func (*Logger) Sync

func (l *Logger) Sync()

Sync calls the underlying Core's Sync method, flushing any buffered log entries. Applications should take care to call Sync before exiting.

Jump to

Keyboard shortcuts

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