github.com/angryronald/go-kit@v0.0.0-20240505173814-ff2bd9c79dbf/generic/http/client/client.log.model.go (about) 1 package client 2 3 import ( 4 "time" 5 6 "github.com/google/uuid" 7 ) 8 9 type ClientRequestLog struct { 10 ID uuid.UUID `json:"id" gorm:"primaryKey,not null"` 11 CalledAt time.Time `json:"called_at" gorm:"not null"` 12 RequestID uuid.UUID `json:"request_id" gorm:"index:request_id_idx"` 13 URLPath string `json:"url_path" gorm:"index:url_path_idx"` 14 Method string `json:"method" gorm:"index:method_idx"` 15 Headers string `json:"headers"` 16 ClientName string `json:"client_name" gorm:"not null"` 17 RequestPayload string `json:"request_payload" gorm:"null"` 18 ResponsePayload string `json:"response_payload" gorm:"not null"` 19 Latency int `json:"latency" gorm:"not null"` 20 StatusCode int `json:"status_code" gorm:"not null"` 21 TriggeredBy uuid.UUID `json:"created_by" gorm:"not null"` 22 CreatedAt time.Time `json:"created_at" gorm:"not null"` 23 CreatedBy uuid.UUID `json:"created_by" gorm:"not null"` 24 }