accesslog

package
v0.0.0-...-1245972 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete()

func Put

func Put(entry Entry)

Types

type Entry

type Entry struct {
	StartTime   string        `json:"start-time"`
	Duration    time.Duration `json:"duration-ms"`
	Traffic     string        `json:"traffic"`
	RouteName   string        `json:"route-name"`
	Region      string        `json:"region"`
	Zone        string        `json:"zone"`
	SubZone     string        `json:"sub-zone"`
	Service     string        `json:"service"`
	InstanceId  string        `json:"instance-id"`
	Method      string        `json:"method"`
	Url         string        `json:"url"`
	Host        string        `json:"host"`
	Path        string        `json:"path"`
	Protocol    string        `json:"protocol"`
	RequestId   string        `json:"request-id"`
	Forwarded   string        `json:"forwarded"`
	StatusCode  int           `json:"status-code"`
	StatusFlags string        `json:"status-flags"`
	TimeoutMs   int           `json:"timeout-ms"`
	RateLimit   rate.Limit    `json:"rate-limit"`
	RateBurst   int           `json:"rate-burst"`
	Retry       bool          `json:"retry"`
	Proxy       bool          `json:"proxy"`
}

func Get

func Get() []Entry

Jump to

Keyboard shortcuts

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