Documentation
¶
Index ¶
Constants ¶
View Source
const LogType = "request"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggableData ¶ added in v0.0.4
type LoggableData struct { Date time.Time `json:"date"` ReqID string `json:"requestID"` Type string `json:"type"` Method string `json:"method"` URL string `json:"URL"` Header http.Header `json:"header"` RemoteAddr string `json:"remoteAddr"` Params map[string]string `json:"params"` }
func (*LoggableData) RequestID ¶ added in v0.0.4
func (r *LoggableData) RequestID() string
func (*LoggableData) SetRequestID ¶ added in v0.0.4
func (r *LoggableData) SetRequestID(id string)
type ParametersExtractor ¶
type ParametersExtractor struct { }
func NewParametersExtractor ¶
func NewParametersExtractor() *ParametersExtractor
func (*ParametersExtractor) GetParameter ¶
GetParameter - checking if the param. is existing in request, it will be returned
func (*ParametersExtractor) HasParameter ¶
func (e *ParametersExtractor) HasParameter(param string, req *http.Request) bool
HasParameter - checking the param. is existing in request
func (*ParametersExtractor) Parameters ¶
func (e *ParametersExtractor) Parameters(r *http.Request) map[string]string
Parameters - will return a map with param. names as keys to values
Click to show internal directories.
Click to hide internal directories.