Documentation
¶
Index ¶
- Variables
- func CloseDB()
- func FormatTime(input_time *time.Time) (result string)
- func GetDB() *bolt_api.DB
- func Get_Location_Windows(location_string string) *time.Location
- func Get_location(name string) *time.Location
- func Init()
- func ItoB(v uint64) []byte
- func SetLocation(location_string string)
- type CustomJSONFormatter
- type CustomLogrusWriter
- type CustomTextFormatter
- type Wrapper
- func (w *Wrapper) FormatDateString(now *time.Time) (result string)
- func (w *Wrapper) FormatTime(input_time *time.Time) (result string)
- func (w *Wrapper) FormatTimeString(now *time.Time) (result string)
- func (w *Wrapper) GetFormattedTimeString() (result string)
- func (w *Wrapper) GetFormattedTimeStringOBJ() (result_string string, result_time time.Time)
- func (w *Wrapper) GetMessages(count int) (messages []string)
- func (w *Wrapper) GetNowDateString() (result string)
- func (w *Wrapper) GetNowTimeOBJ() (result time.Time)
- func (w *Wrapper) GetNowTimeString() (result string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Config *types.ConfigFile
View Source
var DB *bolt_api.DB
View Source
var Encrypting bool
View Source
var Location = Get_Location_Windows("America/New_York")
View Source
var LogKeyBytes []byte
View Source
var ZoneInfoFS embed.FS
Functions ¶
func FormatTime ¶
func Get_Location_Windows ¶ added in v1.1.16
func Get_location ¶ added in v1.1.13
func ItoB ¶ added in v1.1.4
https://github.com/boltdb/bolt#autoincrementing-integer-for-the-bucket itob returns an 8-byte big endian representation of v.
func SetLocation ¶ added in v1.1.13
func SetLocation(location_string string)
Types ¶
type CustomJSONFormatter ¶
type CustomJSONFormatter struct {
logrus.JSONFormatter
}
type CustomLogrusWriter ¶
type CustomTextFormatter ¶
type CustomTextFormatter struct {
logrus.TextFormatter
}
func (*CustomTextFormatter) Format ¶
func (f *CustomTextFormatter) Format(entry *logrus.Entry) (result_bytes []byte, result_error error)
https://github.com/sirupsen/logrus/blob/v1.9.3/entry.go#L44 https://pkg.go.dev/github.com/sirupsen/logrus#Entry
type Wrapper ¶ added in v1.1.9
var Log *Wrapper
var Log *logrus.Logger
func New ¶
func New(config *types.ConfigFile) *Wrapper
so apparently The limitation arises due to the Go language's initialization order: Package-level variables are initialized before main() is called. Functions in main() execute after package-level initializations. something something , singleton func GetLogger( config *types.ConfigFile ) *logrus.Logger {
func (*Wrapper) FormatDateString ¶ added in v1.1.18
func (*Wrapper) FormatTime ¶ added in v1.1.9
func (*Wrapper) FormatTimeString ¶ added in v1.1.18
func (*Wrapper) GetFormattedTimeString ¶ added in v1.1.9
func (*Wrapper) GetFormattedTimeStringOBJ ¶ added in v1.1.9
func (*Wrapper) GetMessages ¶ added in v1.1.10
func (*Wrapper) GetNowDateString ¶ added in v1.1.18
func (*Wrapper) GetNowTimeOBJ ¶ added in v1.1.17
func (*Wrapper) GetNowTimeString ¶ added in v1.1.18
Click to show internal directories.
Click to hide internal directories.