Versions in this module Expand all Collapse all v2 v2.0.1 Oct 8, 2021 v2.0.0 Sep 20, 2021 Changes in this version + func SendHttpMessage(logger *HttpLogger, resp *http.Response, req *http.Request, now int64, ...) + type HttpLogger struct + func NewHttpLogger(options Options) (*HttpLogger, error) + func (logger HttpLogger) Disable() + func (logger HttpLogger) Enable() + func (logger HttpLogger) Enabled() bool + func (logger HttpLogger) Queue() []string + type HttpLoggerForMux struct + HttpLogger *HttpLogger + func NewHttpLoggerForMux() (*HttpLoggerForMux, error) + func NewHttpLoggerForMuxOptions(options Options) (*HttpLoggerForMux, error) + func (muxLogger HttpLoggerForMux) LogData(next http.Handler) http.Handler + type HttpRule struct + func NewHttpRule(_verb string, _scope *regexp.Regexp, _param1 interface{}, _param2 interface{}) *HttpRule + type HttpRules struct + func GetHttpRules() *HttpRules + func (rules *HttpRules) AllowHttpUrl() bool + func (rules *HttpRules) CopySessionField() []*HttpRule + func (rules *HttpRules) DebugRules() string + func (rules *HttpRules) DefaultRules() string + func (rules *HttpRules) Remove() []*HttpRule + func (rules *HttpRules) RemoveIf() []*HttpRule + func (rules *HttpRules) RemoveIfFound() []*HttpRule + func (rules *HttpRules) RemoveUnless() []*HttpRule + func (rules *HttpRules) RemoveUnlessFound() []*HttpRule + func (rules *HttpRules) Replace() []*HttpRule + func (rules *HttpRules) Sample() []*HttpRule + func (rules *HttpRules) SetDefaultRules(r string) + func (rules *HttpRules) Size() int + func (rules *HttpRules) SkipCompression() bool + func (rules *HttpRules) SkipSubmissio() bool + func (rules *HttpRules) StandardRules() string + func (rules *HttpRules) Stop() []*HttpRule + func (rules *HttpRules) StopIf() []*HttpRule + func (rules *HttpRules) StopIfFound() []*HttpRule + func (rules *HttpRules) StopUnless() []*HttpRule + func (rules *HttpRules) StopUnlessFound() []*HttpRule + func (rules *HttpRules) StrictRules() string + func (rules *HttpRules) Text() string + type NetHttpClientLogger struct + HttpLogger *HttpLogger + func NewNetHttpClientLogger() (*NetHttpClientLogger, error) + func NewNetHttpClientLoggerOptions(options Options) (*NetHttpClientLogger, error) + func (clientLogger *NetHttpClientLogger) CloseIdleConnections() + func (clientLogger *NetHttpClientLogger) Do(req *http.Request) (resp *http.Response, err error) + func (clientLogger *NetHttpClientLogger) Get(url string) (resp *http.Response, err error) + func (clientLogger *NetHttpClientLogger) Head(url string) (resp *http.Response, err error) + func (clientLogger *NetHttpClientLogger) Post(url string, contentType string, body io.Reader) (resp *http.Response, err error) + func (clientLogger *NetHttpClientLogger) PostForm(url string, data url.Values) (resp *http.Response, err error) + func (logger *NetHttpClientLogger) Logger() *HttpLogger + type Options struct + Enabled interface{} + Queue []string + Rules string + Url string + type UsageLoggers struct + func GetUsageLoggers() (*UsageLoggers, error) + func (uLogger *UsageLoggers) Disable() + func (uLogger *UsageLoggers) Enable() + func (uLogger *UsageLoggers) IsEnabled() bool + func (uLogger *UsageLoggers) UrlByDefault() string Other modules containing this package github.com/resurfaceio/logger-go github.com/resurfaceio/logger-go/v3