log2webhook

package
v0.0.0-...-239ccf3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootDir

func RootDir() string

Types

type Author

type Author struct {
	Name string `json:"name"`
}

type Embed

type Embed struct {
	Author      Author `json:"author"`
	Title       string `json:"title"`
	URL         string `json:"url"`
	Color       string `json:"color"`
	Description string `json:"description"`
	Footer      Footer `json:"footer"`
	Timestamp   string `json:"timestamp"`
}
type Footer struct {
	Text string `json:"text"`
}

type Log

type Log struct {
	File     string `json:"file"`
	Function string `json:"func"`
	Level    string `json:"level"`
	Message  string `json:"msg"`
	Time     string `json:"time"`
}

type Message

type Message struct {
	Embeds []Embed `json:"embeds"`
}

type WebhookWriter

type WebhookWriter struct{}

func (*WebhookWriter) Write

func (cw *WebhookWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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