logger

package
v0.0.0-...-6fa2f19 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLog

func CreateLog(ip string, method string, path string, scheme string, code string) string

func Error

func Error(format string, v ...interface{})

func Log

func Log(format string, v ...interface{})

func Logger

func Logger(service string, malware bool, malwareType string, log string)

func Warning

func Warning(format string, v ...interface{})

Types

type Loki

type Loki struct {
	Streams Streams `json:"streams"`
}

type Stream

type Stream struct {
	App     string `json:"app"`
	Malware string `json:"malware"`
	Type    string `json:"type"`
}

type StreamEntry

type StreamEntry struct {
	Stream Stream `json:"stream"`
	Values Values `json:"values"`
}

type Streams

type Streams []StreamEntry

type Value

type Value [2]string

type Values

type Values []Value

Jump to

Keyboard shortcuts

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