utils

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package utils implements utilities for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(logWriter io.Writer)

Setup main utils. This initializes, whitelists, blacklists, and log writers.

Types

type LogWriter

type LogWriter struct {
	TimeFmt     string
	MultiWriter io.Writer
}

LogWriter represents a writer that is used for writing logs in multiple locations.

func (LogWriter) Write

func (w LogWriter) Write(bytes []byte) (int, error)

Write implements the write function for the LogWriter. It will add a time in a specific format to logs.

Jump to

Keyboard shortcuts

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