logging

package
v0.0.0-...-6003355 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAuthenticatedUsers

func AddAuthenticatedUsers(count int)

func AddCachedUsers

func AddCachedUsers(count int)

func AddFollows

func AddFollows(count int)

func AddLikes

func AddLikes(count int, targetType string)

func AddPlaylists

func AddPlaylists(count int)

func AddSongs

func AddSongs(count int)

func CompleteCache

func CompleteCache()

func FailCache

func FailCache(err error)

func HandleError

func HandleError(bubbledErr StatusError, r *http.Request, b []byte, t time.Time)

func LogFetch

func LogFetch(r *http.Request)

func LogFetchCompleted

func LogFetchCompleted(resp *http.Response, b []byte, t time.Time)

func LogFetchErrored

func LogFetchErrored(r *http.Request, resp *http.Response)

func LogRequest

func LogRequest(r *http.Request, b []byte)

func LogRequestCompletion

func LogRequestCompletion(w bytes.Buffer, r *http.Request, t time.Time)

func ServeLogs

func ServeLogs()

func WebsocketError

func WebsocketError(err error)

func WebsocketMessage

func WebsocketMessage(msgType string, sender string, content string)

Types

type StatusError

type StatusError struct {
	Code int
	Err  error
}

func SE

func SE(code int, err error) *StatusError

Jump to

Keyboard shortcuts

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