listener

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequestCompletedLogListener

func NewRequestCompletedLogListener(
	appProps *config.AppProperties,
	httpRequestProps *properties.HttpRequestLogProperties,
) pubsub.Subscriber

Types

type HttpRequestLog

type HttpRequestLog struct {
	webLog.ContextAttributes
	Url            string `json:"url"`
	Status         int    `json:"status"`
	ExecutionTime  int64  `json:"execution_time"`
	RequestPattern string `json:"request_pattern,omitempty"`
	RequestPath    string `json:"request_path"`
	Method         string `json:"request_method"`
	Query          string `json:"query,omitempty"`
	RequestId      string `json:"request_id,omitempty"`
	CallerId       string `json:"caller_id,omitempty"`
	ClientIp       string `json:"client_ip,omitempty"`
	UserAgent      string `json:"user_agent,omitempty"`
}

func (HttpRequestLog) MarshalLogObject

func (h HttpRequestLog) MarshalLogObject(encoder field.ObjectEncoder) error

type RequestCompletedLogListener

type RequestCompletedLogListener struct {
	// contains filtered or unexported fields
}

func (RequestCompletedLogListener) Handle

func (RequestCompletedLogListener) Supports

Jump to

Keyboard shortcuts

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