mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
Refactoring Event object, and HTTP handler
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package tracer
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -18,7 +17,7 @@ func Init(strategy Strategy) *Tracer {
|
||||
}
|
||||
|
||||
func (tracer *Tracer) TraceEvent(event Event) {
|
||||
event.DateTime = time.Now().UTC().String()
|
||||
event.DateTime = time.Now().UTC().Format(time.RFC3339)
|
||||
tracer.strategy(event)
|
||||
}
|
||||
|
||||
@ -34,8 +33,8 @@ type Event struct {
|
||||
User string
|
||||
Password string
|
||||
Client string
|
||||
Headers http.Header
|
||||
Cookies []*http.Cookie
|
||||
Headers string
|
||||
Cookies string
|
||||
UserAgent string
|
||||
HostHTTPRequest string
|
||||
Body string
|
||||
|
Reference in New Issue
Block a user