Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EnvFile string
var GinLevel golog.Level = 6
var InfoEnvi *types.Environment
var InfoIdentService *types.IdentityService
App Informations
var InfoIdentSource *types.IdentitySource
var InfoNetwork *types.IdentityNetwork
var InfoReplica *types.Replica
var Stopper = []func(){}
List of stop function
var SystemInfoConfig types.ISystemInfo
Functions ¶
func Network ¶
func Network()
Network collects network interface information for the system. This includes IP addresses (IPv4/IPv6), hostnames, and network interfaces. Can be disabled via environment variable: LETS_ENABLE_NETWORK_INFO=false
func OnShutdown ¶
func OnShutdown()
Types ¶
type LetsFormatter ¶
type LetsFormatter struct {
Indent string
// contains filtered or unexported fields
}
LetsFormatter is a Formatter type for JSON logs.
func (*LetsFormatter) Format ¶
Format prints the logs in JSON format.
Usage: logger.SetFormat("json") or logger.SetLevelFormat("info", "json")
func (*LetsFormatter) Options ¶
func (f *LetsFormatter) Options(opts ...interface{}) golog.Formatter
Options sets the options for the JSON Formatter (currently only indent).
func (*LetsFormatter) String ¶
func (f *LetsFormatter) String() string
String returns the name of the Formatter. In this case it returns "json". It's used to map the formatter names with their implementations.
type SystemInfo ¶ added in v1.0.5
type SystemInfo struct {
// contains filtered or unexported fields
}
SystemInfo provides default configuration for system information display
func NewSystemInfoFromEnv ¶ added in v1.0.5
func NewSystemInfoFromEnv() *SystemInfo
NewSystemInfoFromEnv creates SystemInfo from environment variables
func (*SystemInfo) EnableNetworkInfo ¶ added in v1.0.5
func (s *SystemInfo) EnableNetworkInfo() bool
func (*SystemInfo) EnableReplicaInfo ¶ added in v1.0.5
func (s *SystemInfo) EnableReplicaInfo() bool
func (*SystemInfo) EnableStartupBanner ¶ added in v1.0.5
func (s *SystemInfo) EnableStartupBanner() bool
func (*SystemInfo) EnableVerboseNetworkInfo ¶ added in v1.0.5
func (s *SystemInfo) EnableVerboseNetworkInfo() bool