Commit a25c9f3e authored by Jisan Ahmed's avatar Jisan Ahmed
Browse files

clear:a trip request with bidders

parent 6d0d3e8b
appname = RequestTrip
httpport = 8081
runmode = dev
autorender = false
copyrequestbody = true
EnableDocs = true
sqlconn = tl-g-developer:G33p33a55_dataChai@tcp(103.199.168.130:3306)/trucklagbe_db?charset=utf8&loc=Asia%2FDhaka
package controllers
import (
"RequestTrip/models"
"strconv"
"github.com/beego/beego/logs"
"github.com/beego/beego/orm"
"github.com/beego/beego/v2/server/web"
)
type BidStatusDetailsController struct {
web.Controller
}
// Get retrieves all bid status details
func (c *BidStatusDetailsController) Get() {
// Create a new ORM instance
o := orm.NewOrm()
var bidStatusDetails []models.BidStatusDetails
// Define the raw SQL query to fetch all records from bid_status_details table
sql := "SELECT * FROM bid_status_details"
// Execute the raw SQL query
_, err := o.Raw(sql).QueryRows(&bidStatusDetails)
if err != nil {
c.Data["json"] = map[string]string{"error": err.Error()}
} else {
c.Data["json"] = bidStatusDetails
}
// Serve the JSON response
c.ServeJSON()
}
// GetByBidID retrieves bid status details by bid_id
func (c *BidStatusDetailsController) GetByBidID() {
// Retrieve the bid_id from the URL parameters
bidIDStr := c.Ctx.Input.Param(":bid_id")
bidID, err := strconv.Atoi(bidIDStr)
if err != nil {
c.Data["json"] = map[string]string{"error": "Invalid bid_id"}
c.ServeJSON()
return
}
// Create a new ORM instance
o := orm.NewOrm()
// Define the raw SQL query to fetch the latest record by bid_id
sql := `
SELECT * FROM bid_status_details
WHERE bid_id = ?
ORDER BY status_details_id DESC
LIMIT 1
`
// Execute the raw SQL query
var bidStatusDetails models.BidStatusDetails
err = o.Raw(sql, bidID).QueryRow(&bidStatusDetails)
if err == orm.ErrNoRows {
c.Data["json"] = map[string]string{"error": "No data found for the provided bid_id"}
} else if err != nil {
c.Data["json"] = map[string]string{"error": err.Error()}
} else {
// Check the fetched data
logs.Info("Fetched bid status details: %v", bidStatusDetails)
c.Data["json"] = bidStatusDetails
}
// Serve the JSON response
c.ServeJSON()
}
package controllers
import (
"RequestTrip/models"
"github.com/beego/beego/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
)
type BiddingRequestBidDetailsController struct {
web.Controller
}
// GetAll returns all bidding request bid details
func (c *BiddingRequestBidDetailsController) GetAll() {
// Create a new ORM instance
o := orm.NewOrm()
var biddingDetails []models.BiddingRequestBidDetails
// Define the raw SQL query to fetch all records from bidding_request_bid_details table
sql := "SELECT * FROM bidding_request_bid_details"
// Execute the raw SQL query
_, err := o.Raw(sql).QueryRows(&biddingDetails)
if err != nil {
logs.Error("Error fetching bidding request bid details: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
// If successful, return the bidding details as JSON
c.Data["json"] = biddingDetails
c.ServeJSON()
}
// GetByRequestID returns bidding request bid details by request_id
func (c *BiddingRequestBidDetailsController) GetByRequestID() {
requestID, err := c.GetInt(":request_id")
if err != nil {
c.Data["json"] = map[string]interface{}{"error": "Invalid request_id"}
c.ServeJSON()
return
}
o := orm.NewOrm()
var biddingDetails []models.BiddingRequestBidDetails
// Raw SQL query to ensure ordering works as expected
query := `
SELECT * FROM bidding_request_bid_details
WHERE request_id = ?
ORDER BY rate Desc
`
_, err = o.Raw(query, requestID).QueryRows(&biddingDetails)
if err != nil {
logs.Error("Error fetching bidding request bid details by request_id: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
c.Data["json"] = biddingDetails
c.ServeJSON()
}
// GetByBidID returns bidding request bid details by bid_id
func (c *BiddingRequestBidDetailsController) GetByBidID() {
// Retrieve the bid_id from the URL parameters
bidID, err := c.GetInt(":bid_id")
if err != nil {
c.Data["json"] = map[string]interface{}{"error": "Invalid bid_id"}
c.ServeJSON()
return
}
// Create a new ORM instance
o := orm.NewOrm()
var biddingDetail models.BiddingRequestBidDetails
// Define the raw SQL query to fetch the record by bid_id
sql := "SELECT * FROM bidding_request_bid_details WHERE bid_id = ?"
// Execute the raw SQL query
err = o.Raw(sql, bidID).QueryRow(&biddingDetail)
if err == orm.ErrNoRows {
c.Data["json"] = map[string]interface{}{"error": "No data found for the provided bid_id"}
c.ServeJSON()
return
} else if err != nil {
logs.Error("Error fetching bidding request bid details by bid_id: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
// If successful, return the bidding detail as JSON
c.Data["json"] = biddingDetail
c.ServeJSON()
}
package controllers
import (
"RequestTrip/models"
"github.com/beego/beego/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
)
type BiddingRequestStatusDetailsController struct {
web.Controller
}
// Get retrieves all records from the bidding_request_status_details table
func (c *BiddingRequestStatusDetailsController) Get() {
// Create a new ORM instance
o := orm.NewOrm()
var statusDetails []models.BiddingRequestStatusDetails
// Define the raw SQL query to fetch all records from bidding_request_status_details table
sql := "SELECT * FROM bidding_request_status_details"
// Execute the raw SQL query
_, err := o.Raw(sql).QueryRows(&statusDetails)
if err != nil {
c.Data["json"] = map[string]string{"error": err.Error()}
c.ServeJSON()
return
}
// If successful, return the status details as JSON
c.Data["json"] = statusDetails
c.ServeJSON()
}
func (c *BiddingRequestStatusDetailsController) GetByRequestID() {
// Retrieve the request_id from the URL parameters
requestID, err := c.GetInt(":request_id")
if err != nil {
c.Data["json"] = map[string]interface{}{"error": "Invalid request_id"}
c.ServeJSON()
return
}
// Create a new ORM instance
o := orm.NewOrm()
var statusDetails []models.BiddingRequestStatusDetails
// Define the raw SQL query to fetch records by request_id, ordered by StatusDetailsID descending
sql := "SELECT * FROM bidding_request_status_details WHERE request_id = ? ORDER BY status_details_id DESC limit 1"
// Execute the raw SQL query
_, err = o.Raw(sql, requestID).QueryRows(&statusDetails)
if err != nil {
logs.Error("Error fetching bidding request status details by request_id: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
// If successful, return the status details as JSON
c.Data["json"] = statusDetails
c.ServeJSON()
}
package controllers
import (
"RequestTrip/models"
"github.com/beego/beego/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
)
type BiddingTripAdditionalDetailsController struct {
web.Controller
}
// Get retrieves all records from the bidding_trip_additional_details table
func (c *BiddingTripAdditionalDetailsController) Get() {
// Create a new ORM instance
o := orm.NewOrm()
var tripAdditionalDetails []models.BiddingTripAdditionalDetails
// Define the raw SQL query to fetch all records from bidding_trip_additional_details table
sql := "SELECT * FROM bidding_trip_additional_details"
// Execute the raw SQL query
_, err := o.Raw(sql).QueryRows(&tripAdditionalDetails)
if err != nil {
c.Data["json"] = map[string]string{"error": err.Error()}
c.ServeJSON()
return
}
// If successful, return the trip additional details as JSON
c.Data["json"] = tripAdditionalDetails
c.ServeJSON()
}
// GetWithTripRequestDetails returns joined bidding trip additional details with trip request details by request_id
func (c *BiddingTripAdditionalDetailsController) GetWithTripRequestDetails() {
requestID, err := c.GetInt(":request_id")
if err != nil {
c.Data["json"] = map[string]interface{}{"error": "Invalid request_id"}
c.ServeJSON()
return
}
o := orm.NewOrm()
var result []struct {
BiddingTripAdditionalDetails models.BiddingTripAdditionalDetails `json:"bidding_trip_additional_details"`
TripRequestDetails models.TripRequestDetails `json:"trip_request_details"`
}
_, err = o.Raw(`
SELECT b.*, t.*
FROM bidding_trip_additional_details b
JOIN trip_request_details t ON b.request_id = t.request_id
WHERE b.request_id = ?
`, requestID).QueryRows(&result)
if err != nil {
logs.Error("Error fetching joined details by request_id: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
c.Data["json"] = result
c.ServeJSON()
}
package controllers
import (
"RequestTrip/models"
"github.com/beego/beego/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
)
type TripRequestDetailsController struct {
web.Controller
}
// GetAll returns all trip request details
func (c *TripRequestDetailsController) GetAll() {
o := orm.NewOrm()
var tripRequests []models.TripRequestDetails
// Raw SQL query
sql := "SELECT * FROM trip_request_details"
_, err := o.Raw(sql).QueryRows(&tripRequests)
if err != nil {
logs.Error("Error fetching trip request details: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
c.Data["json"] = tripRequests
c.ServeJSON()
}
// GetByID returns trip request details by request_id
func (c *TripRequestDetailsController) GetByID() {
// Retrieve the request_id from the URL parameters
requestID, err := c.GetInt(":request_id")
if err != nil {
c.Data["json"] = map[string]interface{}{"error": "Invalid request_id"}
c.ServeJSON()
return
}
// Create a new ORM instance
o := orm.NewOrm()
var tripRequest models.TripRequestDetails
// Define the raw SQL query to fetch the trip request by request_id
sql := "SELECT * FROM trip_request_details WHERE request_id = ?"
// Execute the raw SQL query
err = o.Raw(sql, requestID).QueryRow(&tripRequest)
if err == orm.ErrNoRows {
c.Data["json"] = map[string]interface{}{"error": "No data found for the provided request_id"}
c.ServeJSON()
return
} else if err != nil {
logs.Error("Error fetching trip request details by ID: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
// If successful, return the trip request as JSON
c.Data["json"] = tripRequest
c.ServeJSON()
}
package controllers
import (
"RequestTrip/models"
"github.com/beego/beego/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
)
type TripDetailsWithBidsController struct {
web.Controller
}
func (c *TripDetailsWithBidsController) GetTripDetailsWithBids() {
// Retrieve request_id from the URL parameter
requestID, err := c.GetInt(":request_id")
if err != nil {
c.Data["json"] = map[string]interface{}{"error": "Invalid request_id"}
c.ServeJSON()
return
}
o := orm.NewOrm()
// Define the SQL query to fetch trip request details
sqlTripDetails := `
SELECT *
FROM trip_request_details
WHERE request_id = ?
`
var tripDetails models.TripRequestDetails
err = o.Raw(sqlTripDetails, requestID).QueryRow(&tripDetails)
if err == orm.ErrNoRows {
c.Data["json"] = map[string]interface{}{"error": "No data found for the provided request_id"}
c.ServeJSON()
return
} else if err != nil {
logs.Error("Error fetching trip request details: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
// Fetch the status details
sqlStatus := `
SELECT *
FROM bidding_request_status_details
WHERE request_id = ?
ORDER BY status_details_id DESC
`
// Execute the raw SQL query
var statusDetails []models.BiddingRequestStatusDetails
_, err = o.Raw(sqlStatus, requestID).QueryRows(&statusDetails)
if err != nil {
logs.Error("Error fetching bidding request status details: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
// Determine the trip status
var tripStatus string
if len(statusDetails) > 0 {
tripStatus = statusDetails[0].Status
}
// Fetch the bid details
sqlBids := `
SELECT *
FROM bidding_request_bid_details
WHERE request_id = ?
`
var bids []models.BiddingRequestBidDetails
_, err = o.Raw(sqlBids, requestID).QueryRows(&bids)
if err != nil {
logs.Error("Error fetching bidding request bid details: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
// Prepare bid details and include bid status from BidStatusDetails
var bidDetails []map[string]interface{}
for _, bid := range bids {
sqlBidStatus := `
SELECT *
FROM bid_status_details
WHERE bid_id = ?
ORDER BY status_details_id DESC
`
var bidStatus models.BidStatusDetails
err = o.Raw(sqlBidStatus, bid.BidID).QueryRow(&bidStatus)
if err != nil {
logs.Error("Error fetching bid status details: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
bidDetails = append(bidDetails, map[string]interface{}{
"user_details_id": bid.OwnerID,
"bid_id": bid.BidID,
"truck_no": bid.TruckNo,
"truck_id": bid.TruckID,
"bid_status": bidStatus.Status, // Fetching bid status from BidStatusDetails
"status_details_id": bidStatus.StatusDetailsID,
})
}
// If the trip status is active, sort the bid details by rate in ascending order
/* if tripStatus == "active" {
sort.Slice(bidDetails, func(i, j int) bool {
return bids[i].Rate < bids[j].Rate
})
} */
response := map[string]interface{}{
"trip_details": map[string]interface{}{
"trip_id": tripDetails.RequestID,
"trip_status": tripStatus,
"pick_address": tripDetails.PickAdd,
"drop_address": tripDetails.DropAdd,
"pickup_time": tripDetails.PickTime,
},
"bid_details": bidDetails,
}
c.Data["json"] = response
c.ServeJSON()
}
package controllers
import (
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/orm"
"github.com/beego/beego/v2/server/web"
)
// TripRequestStatusController handles requests for trip request and status details
type TripRequestStatusController struct {
web.Controller
}
// GetStatusByRequestID retrieves trip request details and status based on request_id
func (c *TripRequestStatusController) GetStatusByRequestID() {
requestID, err := c.GetInt(":request_id")
if err != nil {
c.Data["json"] = map[string]interface{}{"error": "Invalid request_id"}
c.ServeJSON()
return
}
o := orm.NewOrm()
var result []orm.Params
// Define the raw SQL query to join tables and select the necessary fields
query := `
SELECT t.request_id, s.status, s.admin_user, s.cancellation_reason
FROM trip_request_details t
LEFT JOIN bidding_request_status_details s ON t.request_id = s.request_id
WHERE t.request_id = ?
`
// Execute the query
_, err = o.Raw(query, requestID).Values(&result)
if err != nil {
logs.Error("Error fetching trip request and status details: %v", err)
c.Data["json"] = map[string]interface{}{"error": err.Error()}
c.ServeJSON()
return
}
c.Data["json"] = result
c.ServeJSON()
}
2024/08/18 17:11:00.740 [I] [main.go:50] Logging configured successfully
2024/08/18 17:11:00.762 [I] [server.go:280] http server Running on http://:8080
2024/08/18 17:11:22.507 [I] [main.go:50] Logging configured successfully
2024/08/18 17:11:22.511 [I] [server.go:280] http server Running on http://:8080
2024/08/18 17:11:23.543 [I] [main.go:50] Logging configured successfully
2024/08/18 17:11:23.548 [I] [server.go:280] http server Running on http://:8080
2024/08/18 17:11:27.575 [I] [main.go:50] Logging configured successfully
2024/08/18 17:11:27.580 [I] [server.go:280] http server Running on http://:8080
2024/08/18 17:11:28.694 [I] [main.go:50] Logging configured successfully
2024/08/18 17:11:28.701 [I] [server.go:280] http server Running on http://:8080
2024/08/18 17:12:21.017 [D] [router.go:1306] | ::1| 500 | 5.370748ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/18 17:24:28.504 [I] [main.go:50] Logging configured successfully
2024/08/18 17:24:28.512 [I] [server.go:280] http server Running on http://:8080
2024/08/18 17:24:29.343 [I] [main.go:50] Logging configured successfully
2024/08/18 17:24:29.363 [I] [server.go:280] http server Running on http://:8080
2024/08/18 17:24:50.281 [I] [main.go:50] Logging configured successfully
2024/08/18 17:24:50.284 [I] [server.go:280] http server Running on http://:8080
2024/08/18 17:24:50.285 [C] [server.go:297] ListenAndServe: listen tcp :8080: bind: address already in use
2024/08/18 17:24:59.494 [I] [main.go:50] Logging configured successfully
2024/08/18 17:24:59.498 [I] [server.go:280] http server Running on http://:8081
2024/08/18 17:25:09.695 [I] [main.go:50] Logging configured successfully
2024/08/18 17:25:09.716 [I] [server.go:280] http server Running on http://:8081
2024/08/18 17:29:17.681 [D] [router.go:1306] | ::1| 500 | 5.457361ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/18 17:33:42.873 [I] [main.go:50] Logging configured successfully
2024/08/18 17:33:42.878 [I] [server.go:280] http server Running on http://:8081
2024/08/18 17:33:45.378 [I] [main.go:50] Logging configured successfully
2024/08/18 17:33:45.391 [I] [server.go:280] http server Running on http://:8081
2024/08/18 17:47:38.262 [I] [main.go:50] Logging configured successfully
2024/08/18 17:47:38.265 [I] [server.go:280] http server Running on http://:8081
2024/08/18 17:47:45.195 [D] [router.go:1306] | ::1| 500 | 4.449198ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/18 17:50:10.966 [I] [main.go:50] Logging configured successfully
2024/08/18 17:50:10.971 [I] [server.go:280] http server Running on http://:8081
2024/08/18 17:51:37.828 [I] [main.go:50] Logging configured successfully
2024/08/18 17:51:37.850 [I] [server.go:280] http server Running on http://:8081
2024/08/18 17:53:17.356 [I] [main.go:50] Logging configured successfully
2024/08/18 17:53:17.373 [I] [server.go:280] http server Running on http://:8081
2024/08/18 17:54:19.537 [E] [trip_request_details_controller.go:23] Error retrieving data: Error 1054 (42S22): Unknown column 'T0.shipper_i_d' in 'field list'
2024/08/18 17:54:19.537 [D] [router.go:1306] | ::1| 200 | 6.061387ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 10:44:48.981 [I] [main.go:50] Logging configured successfully
2024/08/19 10:44:49.004 [I] [server.go:280] http server Running on http://:8081
2024/08/19 10:45:52.730 [D] [router.go:1306] | ::1| 200 | 6.253876ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 10:49:52.434 [I] [main.go:50] Logging configured successfully
2024/08/19 10:49:52.441 [I] [server.go:280] http server Running on http://:8081
2024/08/19 10:49:53.908 [I] [main.go:50] Logging configured successfully
2024/08/19 10:49:53.914 [I] [server.go:280] http server Running on http://:8081
2024/08/19 10:50:13.819 [D] [router.go:1306] | ::1| 200 | 4.291556ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 10:53:07.783 [I] [main.go:50] Logging configured successfully
2024/08/19 10:53:07.791 [I] [server.go:280] http server Running on http://:8081
2024/08/19 10:53:18.479 [D] [router.go:1306] | ::1| 200 | 26.124291ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 10:55:28.372 [D] [router.go:1306] | ::1| 404 | 244.799µs| nomatch| GET  /favicon.ico
2024/08/19 10:56:56.433 [I] [main.go:50] Logging configured successfully
2024/08/19 10:56:56.453 [I] [server.go:280] http server Running on http://:8081
2024/08/19 10:57:12.640 [D] [router.go:1306] | ::1| 200 | 45.312211ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 10:57:13.943 [D] [router.go:1306] | ::1| 200 | 27.859733ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 10:59:21.075 [I] [main.go:50] Logging configured successfully
2024/08/19 10:59:21.080 [I] [server.go:280] http server Running on http://:8081
2024/08/19 10:59:58.673 [I] [main.go:50] Logging configured successfully
2024/08/19 10:59:58.677 [I] [server.go:280] http server Running on http://:8081
2024/08/19 11:01:18.656 [I] [main.go:50] Logging configured successfully
2024/08/19 11:01:18.660 [I] [server.go:280] http server Running on http://:8081
2024/08/19 11:01:25.417 [I] [main.go:50] Logging configured successfully
2024/08/19 11:01:25.421 [I] [server.go:280] http server Running on http://:8081
2024/08/19 11:01:49.535 [D] [router.go:1306] | ::1| 200 | 131.628557ms| match| GET  /biddingtripadditionaldetails r:/biddingtripadditionaldetails
2024/08/19 11:02:04.569 [D] [router.go:1306] | ::1| 200 | 13.321969ms| match| GET  /biddingrequestbiddetails r:/biddingrequestbiddetails
2024/08/19 11:02:13.870 [D] [router.go:1306] | ::1| 200 | 62.406263ms| match| GET  /biddingrequeststatusdetails r:/biddingrequeststatusdetails
2024/08/19 12:05:21.591 [I] [main.go:50] Logging configured successfully
2024/08/19 12:05:21.605 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:05:47.952 [D] [router.go:1306] | ::1| 200 | 28.354492ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 12:06:03.437 [D] [router.go:1306] | ::1| 200 | 31.062216ms| match| GET  /triprequestdetails/1930992 r:/triprequestdetails/:id
2024/08/19 12:07:06.004 [I] [main.go:50] Logging configured successfully
2024/08/19 12:07:06.010 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:07:08.330 [I] [main.go:50] Logging configured successfully
2024/08/19 12:07:08.335 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:12:32.012 [I] [main.go:50] Logging configured successfully
2024/08/19 12:12:32.032 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:14:30.204 [D] [router.go:1306] | ::1| 200 | 10.371035ms| match| GET  /biddingrequestbiddetails/request_id/1930992 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 12:31:41.779 [D] [router.go:1306] | ::1| 200 | 54.020907ms| match| GET  /biddingrequestbiddetails/bid_id/11162924 r:/biddingrequestbiddetails/bid_id/:bid_id
2024/08/19 12:33:01.160 [D] [router.go:1306] | ::1| 200 | 34.923455ms| match| GET  /biddingtripadditionaldetails r:/biddingtripadditionaldetails
2024/08/19 12:35:53.409 [I] [main.go:50] Logging configured successfully
2024/08/19 12:35:53.429 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:36:34.864 [I] [main.go:50] Logging configured successfully
2024/08/19 12:36:34.882 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:49:00.150 [I] [main.go:50] Logging configured successfully
2024/08/19 12:49:00.153 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:49:23.054 [I] [main.go:50] Logging configured successfully
2024/08/19 12:49:23.074 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:50:06.366 [I] [main.go:50] Logging configured successfully
2024/08/19 12:50:06.377 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:50:08.132 [I] [main.go:50] Logging configured successfully
2024/08/19 12:50:08.151 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:53:44.981 [I] [main.go:50] Logging configured successfully
2024/08/19 12:53:44.986 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:53:45.999 [I] [main.go:50] Logging configured successfully
2024/08/19 12:53:46.016 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:55:26.750 [D] [router.go:1306] | ::1| 200 | 43.833207ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 12:57:46.769 [D] [router.go:1306] | ::1| 200 | 11.537768ms| match| GET  /triprequestdetails/1931102 r:/triprequestdetails/:id
2024/08/19 12:59:01.750 [D] [router.go:1306] | ::1| 200 | 185.353743ms| match| GET  /biddingtripadditionaldetails r:/biddingtripadditionaldetails
2024/08/19 12:59:31.379 [I] [main.go:50] Logging configured successfully
2024/08/19 12:59:31.383 [I] [server.go:280] http server Running on http://:8081
2024/08/19 12:59:52.566 [D] [router.go:1306] | ::1| 200 | 25.567492ms| match| GET  /biddingtripadditionaldetails/request_id/1931102 r:/biddingtripadditionaldetails/request_id/:request_id
2024/08/19 13:01:33.986 [D] [router.go:1306] | ::1| 200 | 67.865893ms| match| GET  /biddingtripadditionaldetails r:/biddingtripadditionaldetails
2024/08/19 13:01:44.229 [D] [router.go:1306] | ::1| 200 | 60.649983ms| match| GET  /biddingtripadditionaldetails/request_id/1931102 r:/biddingtripadditionaldetails/request_id/:request_id
2024/08/19 13:04:59.345 [I] [main.go:50] Logging configured successfully
2024/08/19 13:04:59.349 [I] [server.go:280] http server Running on http://:8081
2024/08/19 13:05:02.174 [I] [main.go:50] Logging configured successfully
2024/08/19 13:05:02.178 [I] [server.go:280] http server Running on http://:8081
2024/08/19 13:05:03.708 [I] [main.go:50] Logging configured successfully
2024/08/19 13:05:03.711 [I] [server.go:280] http server Running on http://:8081
2024/08/19 13:10:26.692 [D] [router.go:1306] | ::1| 200 | 10.958495ms| match| GET  /biddingrequestbiddetails/request_id/11163017 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 13:10:47.748 [D] [router.go:1306] | ::1| 200 | 5.468444ms| match| GET  /biddingrequestbiddetails/request_id/1931102 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 13:13:24.095 [D] [router.go:1306] | ::1| 200 | 4.651068ms| match| GET  /biddingrequestbiddetails/request_id/11163017 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 13:13:37.592 [D] [router.go:1306] | ::1| 200 | 9.799816ms| match| GET  /biddingrequestbiddetails/bid_id/11163017 r:/biddingrequestbiddetails/bid_id/:bid_id
2024/08/19 13:15:38.052 [D] [router.go:1306] | ::1| 200 | 4.801309ms| match| GET  /biddingrequestbiddetails/request_id/1931102 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 13:47:46.794 [I] [main.go:50] Logging configured successfully
2024/08/19 13:47:46.798 [I] [server.go:280] http server Running on http://:8081
2024/08/19 13:52:30.267 [I] [main.go:50] Logging configured successfully
2024/08/19 13:52:30.272 [I] [server.go:280] http server Running on http://:8081
2024/08/19 13:59:24.718 [D] [router.go:1306] | ::1| 200 | 32.807191ms| match| GET  /biddingtripadditionaldetails/request_id/1931102 r:/biddingtripadditionaldetails/request_id/:request_id
2024/08/19 14:09:21.460 [I] [main.go:50] Logging configured successfully
2024/08/19 14:09:21.467 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:11:48.586 [D] [router.go:1306] | ::1| 200 | 47.453099ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/19 14:12:11.527 [D] [router.go:1306] | ::1| 200 | 36.233µs| match| GET  /triprequestdetails/1931104 r:/triprequestdetails/:request_id
2024/08/19 14:12:38.679 [D] [router.go:1306] | ::1| 200 | 40.889µs| match| GET  /triprequestdetails/1931104
r:/triprequestdetails/:request_id
2024/08/19 14:13:27.911 [D] [router.go:1306] | ::1| 200 | 38.254µs| match| GET  /triprequestdetails/1931104 r:/triprequestdetails/:request_id
2024/08/19 14:13:34.089 [D] [router.go:1306] | ::1| 200 | 32.043µs| match| GET  /triprequestdetails/1931103 r:/triprequestdetails/:request_id
2024/08/19 14:13:38.396 [D] [router.go:1306] | ::1| 200 | 33.138µs| match| GET  /triprequestdetails/1931102 r:/triprequestdetails/:request_id
2024/08/19 14:14:17.007 [I] [main.go:50] Logging configured successfully
2024/08/19 14:14:17.012 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:14:20.142 [I] [main.go:50] Logging configured successfully
2024/08/19 14:14:20.149 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:14:25.269 [D] [router.go:1306] | ::1| 200 | 12.198457ms| match| GET  /triprequestdetails/1931102 r:/triprequestdetails/:request_id
2024/08/19 14:15:49.967 [D] [router.go:1306] | ::1| 200 | 26.097339ms| match| GET  /biddingtripadditionaldetails r:/biddingtripadditionaldetails
2024/08/19 14:16:11.788 [D] [router.go:1306] | ::1| 200 | 11.72948ms| match| GET  /biddingtripadditionaldetails/request_id/1931104 r:/biddingtripadditionaldetails/request_id/:request_id
2024/08/19 14:18:36.341 [D] [router.go:1306] | ::1| 200 | 5.875456ms| match| GET  /triprequestdetails/1931104 r:/triprequestdetails/:request_id
2024/08/19 14:18:57.792 [D] [router.go:1306] | ::1| 200 | 20.841946ms| match| GET  /triprequeststatus/1931104 r:/triprequeststatus/:request_id
2024/08/19 14:22:21.807 [I] [main.go:50] Logging configured successfully
2024/08/19 14:22:21.822 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:22:56.237 [E] [trip_request_status_conroller.go:37] Error fetching trip request and status details: Error 1054 (42S22): Unknown column 't.status' in 'field list'
2024/08/19 14:22:56.237 [D] [router.go:1306] | ::1| 200 | 3.870534ms| match| GET  /triprequeststatus/1931104 r:/triprequeststatus/:request_id
2024/08/19 14:23:23.102 [I] [main.go:50] Logging configured successfully
2024/08/19 14:23:23.125 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:23:25.750 [I] [main.go:50] Logging configured successfully
2024/08/19 14:23:25.755 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:23:43.970 [D] [router.go:1306] | ::1| 200 | 8.789238ms| match| GET  /triprequeststatus/1931104 r:/triprequeststatus/:request_id
2024/08/19 14:24:13.010 [I] [main.go:50] Logging configured successfully
2024/08/19 14:24:13.013 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:24:20.570 [I] [main.go:50] Logging configured successfully
2024/08/19 14:24:20.588 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:27:06.474 [D] [router.go:1306] | ::1| 200 | 10.281626ms| match| GET  /biddingrequestbiddetails/request_id/1931104 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 14:28:35.545 [I] [main.go:50] Logging configured successfully
2024/08/19 14:28:35.549 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:28:43.643 [D] [router.go:1306] | ::1| 200 | 10.79399ms| match| GET  /biddingrequestbiddetails/request_id/1931104 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 14:29:24.947 [I] [main.go:50] Logging configured successfully
2024/08/19 14:29:24.966 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:29:24.968 [C] [server.go:297] ListenAndServe: listen tcp :8081: bind: address already in use
2024/08/19 14:30:40.049 [I] [main.go:50] Logging configured successfully
2024/08/19 14:30:40.066 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:30:47.074 [D] [router.go:1306] | ::1| 200 | 10.828555ms| match| GET  /biddingrequestbiddetails/request_id/1931104 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 14:35:08.107 [I] [main.go:50] Logging configured successfully
2024/08/19 14:35:08.113 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:35:25.034 [I] [main.go:50] Logging configured successfully
2024/08/19 14:35:25.037 [I] [server.go:280] http server Running on http://:8081
2024/08/19 14:35:30.436 [D] [router.go:1306] | ::1| 200 | 11.302877ms| match| GET  /biddingrequestbiddetails/request_id/1931104 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 16:46:21.181 [D] [router.go:1306] | ::1| 200 | 11.808899ms| match| GET  /triprequestdetails/1931105 r:/triprequestdetails/:request_id
2024/08/19 16:47:11.740 [D] [router.go:1306] | ::1| 200 | 12.093638ms| match| GET  /triprequeststatus/1931105 r:/triprequeststatus/:request_id
2024/08/19 16:50:12.832 [D] [router.go:1306] | ::1| 200 | 12.109758ms| match| GET  /biddingtripadditionaldetails/request_id/1931105 r:/biddingtripadditionaldetails/request_id/:request_id
2024/08/19 16:55:41.732 [D] [router.go:1306] | ::1| 200 | 7.687989ms| match| GET  /biddingrequestbiddetails/request_id/1931105 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/19 16:56:53.903 [D] [router.go:1306] | ::1| 200 | 52.839543ms| match| GET  /biddingrequestbiddetails/bid_id/11163021 r:/biddingrequestbiddetails/bid_id/:bid_id
2024/08/19 16:57:42.515 [I] [main.go:50] Logging configured successfully
2024/08/19 16:57:42.521 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:57:43.531 [I] [main.go:50] Logging configured successfully
2024/08/19 16:57:43.535 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:57:46.943 [I] [main.go:50] Logging configured successfully
2024/08/19 16:57:46.947 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:57:51.085 [I] [main.go:50] Logging configured successfully
2024/08/19 16:57:51.089 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:58:00.388 [I] [main.go:50] Logging configured successfully
2024/08/19 16:58:00.408 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:58:06.846 [I] [main.go:50] Logging configured successfully
2024/08/19 16:58:06.852 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:58:08.680 [I] [main.go:50] Logging configured successfully
2024/08/19 16:58:08.685 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:59:55.743 [I] [main.go:50] Logging configured successfully
2024/08/19 16:59:55.753 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:59:57.594 [I] [main.go:50] Logging configured successfully
2024/08/19 16:59:57.601 [I] [server.go:280] http server Running on http://:8081
2024/08/19 16:59:59.409 [I] [main.go:50] Logging configured successfully
2024/08/19 16:59:59.429 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:01.491 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:01.495 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:01.977 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:01.996 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:07.695 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:07.713 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:12.936 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:12.943 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:34.490 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:34.508 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:38.595 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:38.613 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:44.364 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:44.367 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:45.726 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:45.731 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:00:47.675 [I] [main.go:50] Logging configured successfully
2024/08/19 17:00:47.679 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:02:36.510 [D] [router.go:1306] | ::1| 200 | 31.99873ms| match| GET  /biddingrequeststatusdetails r:/biddingrequeststatusdetails
2024/08/19 17:03:06.510 [I] [main.go:50] Logging configured successfully
2024/08/19 17:03:06.519 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:04:21.004 [I] [main.go:50] Logging configured successfully
2024/08/19 17:04:21.008 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:04:25.897 [I] [main.go:50] Logging configured successfully
2024/08/19 17:04:25.915 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:04:30.396 [I] [main.go:50] Logging configured successfully
2024/08/19 17:04:30.400 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:04:39.276 [I] [main.go:50] Logging configured successfully
2024/08/19 17:04:39.295 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:05:03.575 [I] [main.go:50] Logging configured successfully
2024/08/19 17:05:03.592 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:05:28.101 [I] [main.go:50] Logging configured successfully
2024/08/19 17:05:28.105 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:05:38.479 [I] [main.go:50] Logging configured successfully
2024/08/19 17:05:38.484 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:05:40.144 [I] [main.go:50] Logging configured successfully
2024/08/19 17:05:40.164 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:07:24.681 [D] [router.go:1306] | ::1| 200 | 111.554109ms| match| GET  /bidstatusdetails r:/bidstatusdetails
2024/08/19 17:08:48.873 [D] [router.go:1306] | ::1| 200 | 8.665024ms| match| GET  /bidstatusdetails/bid_id/11163021 r:/bidstatusdetails/bid_id/:bid_id
2024/08/19 17:09:43.000 [D] [router.go:1306] | ::1| 200 | 4.638808ms| match| GET  /bidstatusdetails/bid_id/11163021 r:/bidstatusdetails/bid_id/:bid_id
2024/08/19 17:11:01.504 [D] [router.go:1306] | ::1| 200 | 4.363098ms| match| GET  /bidstatusdetails/bid_id/11163021 r:/bidstatusdetails/bid_id/:bid_id
2024/08/19 17:15:53.778 [I] [main.go:50] Logging configured successfully
2024/08/19 17:15:53.781 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:23.651 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:23.655 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:34.430 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:34.434 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:36.007 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:36.013 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:39.117 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:39.121 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:40.247 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:40.265 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:45.872 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:45.878 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:51.343 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:51.349 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:52.200 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:52.204 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:18:59.801 [I] [main.go:50] Logging configured successfully
2024/08/19 17:18:59.817 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:19:05.172 [I] [main.go:50] Logging configured successfully
2024/08/19 17:19:05.210 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:20:17.539 [D] [router.go:1306] | ::1| 200 | 8.987702ms| match| GET  /biddingrequeststatusdetails/request_id/1931105 r:/biddingrequeststatusdetails/request_id/:request_id
2024/08/19 17:22:48.401 [I] [main.go:50] Logging configured successfully
2024/08/19 17:22:48.406 [I] [server.go:280] http server Running on http://:8081
2024/08/19 17:22:59.310 [D] [router.go:1306] | ::1| 200 | 8.972258ms| match| GET  /biddingrequeststatusdetails/request_id/1931105 r:/biddingrequeststatusdetails/request_id/:request_id
2024/08/19 17:26:13.121 [D] [router.go:1306] | ::1| 200 | 7.038904ms| match| GET  /bidstatusdetails/bid_id/11163021 r:/bidstatusdetails/bid_id/:bid_id
2024/08/19 17:26:45.630 [D] [router.go:1306] | ::1| 200 | 4.36002ms| match| GET  /bidstatusdetails/bid_id/11163022 r:/bidstatusdetails/bid_id/:bid_id
2024/08/19 17:26:53.878 [D] [router.go:1306] | ::1| 200 | 4.203892ms| match| GET  /bidstatusdetails/bid_id/11163021 r:/bidstatusdetails/bid_id/:bid_id
2024/08/19 17:27:16.308 [D] [router.go:1306] | ::1| 200 | 30.056945ms| match| GET  /bidstatusdetails r:/bidstatusdetails
2024/08/19 17:28:03.763 [D] [router.go:1306] | ::1| 200 | 9.851952ms| match| GET  /biddingrequestbiddetails/bid_id/11163021 r:/biddingrequestbiddetails/bid_id/:bid_id
2024/08/19 17:28:18.236 [D] [router.go:1306] | ::1| 200 | 4.954903ms| match| GET  /biddingrequestbiddetails/bid_id/11163022 r:/biddingrequestbiddetails/bid_id/:bid_id
2024/08/19 17:31:27.147 [D] [router.go:1306] | ::1| 200 | 20.182973ms| match| GET  /bidstatusdetails/bid_id/11163022 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 09:42:59.314 [I] [main.go:50] Logging configured successfully
2024/08/21 09:42:59.322 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:43:05.515 [D] [router.go:1306] | ::1| 200 | 31.758369ms| match| GET  /triprequestdetails r:/triprequestdetails
2024/08/21 09:50:19.372 [I] [main.go:50] Logging configured successfully
2024/08/21 09:50:19.376 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:50:28.856 [I] [main.go:50] Logging configured successfully
2024/08/21 09:50:28.860 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:52:49.944 [I] [main.go:50] Logging configured successfully
2024/08/21 09:52:49.948 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:54:05.130 [I] [main.go:50] Logging configured successfully
2024/08/21 09:54:05.134 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:54:19.318 [I] [main.go:50] Logging configured successfully
2024/08/21 09:54:19.322 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:54:20.189 [I] [main.go:50] Logging configured successfully
2024/08/21 09:54:20.208 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:55:17.549 [I] [main.go:50] Logging configured successfully
2024/08/21 09:55:17.568 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:55:30.157 [I] [main.go:50] Logging configured successfully
2024/08/21 09:55:30.182 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:56:42.067 [I] [main.go:50] Logging configured successfully
2024/08/21 09:56:42.072 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:57:35.877 [I] [main.go:50] Logging configured successfully
2024/08/21 09:57:35.882 [I] [server.go:280] http server Running on http://:8081
2024/08/21 09:57:52.268 [I] [main.go:50] Logging configured successfully
2024/08/21 09:57:52.277 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:01:59.317 [I] [main.go:50] Logging configured successfully
2024/08/21 10:01:59.339 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:03:01.058 [I] [main.go:50] Logging configured successfully
2024/08/21 10:03:01.063 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:12:42.332 [D] [router.go:1306] | ::1| 200 | 7.977128ms| match| GET  /bidstatusdetails/bid_id/11163022 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 10:12:55.964 [D] [router.go:1306] | ::1| 200 | 9.681799ms| match| GET  /biddingrequeststatusdetails/request_id/1931105 r:/biddingrequeststatusdetails/request_id/:request_id
2024/08/21 10:25:04.119 [I] [main.go:50] Logging configured successfully
2024/08/21 10:25:04.129 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:31:11.476 [I] [main.go:50] Logging configured successfully
2024/08/21 10:31:11.496 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:42:47.198 [D] [router.go:1306] | ::1| 200 | 25.804663ms| match| GET  /bidstatusdetails/bid_id/11163029 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 10:49:55.002 [I] [main.go:50] Logging configured successfully
2024/08/21 10:49:55.018 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:50:03.066 [D] [router.go:1306] | ::1| 200 | 8.622825ms| match| GET  /bidstatusdetails/bid_id/11163029 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 10:52:40.525 [I] [main.go:50] Logging configured successfully
2024/08/21 10:52:40.529 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:52:53.471 [D] [router.go:1306] | ::1| 200 | 10.931121ms| match| GET  /bidstatusdetails/bid_id/11163029 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 10:53:09.973 [D] [router.go:1306] | ::1| 200 | 11.089402ms| match| GET  /biddingrequeststatusdetails/request_id/1931105 r:/biddingrequeststatusdetails/request_id/:request_id
2024/08/21 10:54:11.243 [I] [main.go:50] Logging configured successfully
2024/08/21 10:54:11.252 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:54:12.891 [I] [main.go:50] Logging configured successfully
2024/08/21 10:54:12.896 [I] [server.go:280] http server Running on http://:8081
2024/08/21 10:54:14.148 [D] [router.go:1306] | ::1| 200 | 17.782395ms| match| GET  /biddingrequeststatusdetails/request_id/1931105 r:/biddingrequeststatusdetails/request_id/:request_id
2024/08/21 10:58:24.525 [D] [router.go:1306] | ::1| 200 | 49.658812ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:01:57.643 [I] [main.go:50] Logging configured successfully
2024/08/21 11:01:57.647 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:02:30.591 [I] [main.go:50] Logging configured successfully
2024/08/21 11:02:30.602 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:05:53.383 [I] [main.go:50] Logging configured successfully
2024/08/21 11:05:53.392 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:06:50.403 [I] [main.go:50] Logging configured successfully
2024/08/21 11:06:50.408 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:07:07.053 [I] [main.go:50] Logging configured successfully
2024/08/21 11:07:07.073 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:07:15.719 [D] [router.go:1306] | ::1| 200 | 44.514749ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:11:05.749 [I] [main.go:50] Logging configured successfully
2024/08/21 11:11:05.766 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:11:10.192 [C] [config.go:500] the request url is //tripdetailswithbids/1931110
2024/08/21 11:11:10.192 [C] [config.go:501] Handler crashed with error interface conversion: interface {} is string, not int
2024/08/21 11:11:10.192 [C] [config.go:507] /usr/local/go/src/runtime/panic.go:770
2024/08/21 11:11:10.192 [C] [config.go:507] /usr/local/go/src/runtime/iface.go:262
2024/08/21 11:11:10.192 [C] [config.go:507] /home/user/Desktop/TL Jisan/RequestTrip/RequestTrip/controllers/trip_request_details_with_bids_controller.go:80
2024/08/21 11:11:10.192 [C] [config.go:507] /usr/local/go/src/reflect/value.go:596
2024/08/21 11:11:10.192 [C] [config.go:507] /usr/local/go/src/reflect/value.go:380
2024/08/21 11:11:10.192 [C] [config.go:507] /home/user/go/pkg/mod/github.com/beego/beego/v2@v2.3.0/server/web/router.go:1234
2024/08/21 11:11:10.192 [C] [config.go:507] /home/user/go/pkg/mod/github.com/beego/beego/v2@v2.3.0/server/web/filter.go:83
2024/08/21 11:11:10.192 [C] [config.go:507] /home/user/go/pkg/mod/github.com/beego/beego/v2@v2.3.0/server/web/router.go:1003
2024/08/21 11:11:10.192 [C] [config.go:507] /usr/local/go/src/net/http/server.go:3142
2024/08/21 11:11:10.192 [C] [config.go:507] /usr/local/go/src/net/http/server.go:2044
2024/08/21 11:11:10.192 [C] [config.go:507] /usr/local/go/src/runtime/asm_amd64.s:1695
2024/08/21 11:11:21.510 [I] [main.go:50] Logging configured successfully
2024/08/21 11:11:21.518 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:11:26.758 [D] [router.go:1306] | ::1| 200 | 46.475938ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:14:38.861 [D] [router.go:1306] | ::1| 200 | 12.877579ms| match| GET  /bidstatusdetails/bid_id/11163029 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 11:18:02.619 [I] [main.go:50] Logging configured successfully
2024/08/21 11:18:02.623 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:18:53.687 [I] [main.go:50] Logging configured successfully
2024/08/21 11:18:53.705 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:19:06.705 [D] [router.go:1306] | ::1| 200 | 9.156929ms| match| GET  /bidstatusdetails/bid_id/11163029 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 11:19:09.806 [D] [router.go:1306] | ::1| 200 | 45.254785ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:19:29.515 [I] [main.go:50] Logging configured successfully
2024/08/21 11:19:29.535 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:20:06.325 [D] [router.go:1306] | ::1| 200 | 45.191301ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:21:04.331 [D] [router.go:1306] | ::1| 200 | 25.006285ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:21:04.467 [I] [main.go:50] Logging configured successfully
2024/08/21 11:21:04.475 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:24:07.063 [I] [main.go:50] Logging configured successfully
2024/08/21 11:24:07.067 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:25:14.028 [I] [main.go:50] Logging configured successfully
2024/08/21 11:25:14.038 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:25:20.248 [I] [main.go:50] Logging configured successfully
2024/08/21 11:25:20.254 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:25:21.177 [I] [main.go:50] Logging configured successfully
2024/08/21 11:25:21.200 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:25:33.778 [D] [router.go:1306] | ::1| 200 | 9.799919ms| match| GET  /bidstatusdetails/bid_id/11163029 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 11:26:28.770 [E] [trip_request_details_with_bids_controller.go:83] Error fetching bid details: sql: expected 24 destination arguments in Scan, not 1
2024/08/21 11:26:28.770 [D] [router.go:1306] | ::1| 200 | 32.909948ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:26:29.913 [I] [main.go:50] Logging configured successfully
2024/08/21 11:26:29.931 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:26:41.350 [E] [trip_request_details_with_bids_controller.go:84] Error fetching bid details: sql: expected 24 destination arguments in Scan, not 1
2024/08/21 11:26:41.351 [D] [router.go:1306] | ::1| 200 | 35.434094ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:26:42.747 [I] [main.go:50] Logging configured successfully
2024/08/21 11:26:42.767 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:26:48.382 [E] [trip_request_details_with_bids_controller.go:84] Error fetching bid details: sql: expected 24 destination arguments in Scan, not 1
2024/08/21 11:26:48.383 [D] [router.go:1306] | ::1| 200 | 39.416504ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:26:49.597 [I] [main.go:50] Logging configured successfully
2024/08/21 11:26:49.603 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:27:04.445 [I] [main.go:50] Logging configured successfully
2024/08/21 11:27:04.449 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:27:04.813 [D] [router.go:1306] | ::1| 200 | 42.797916ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:27:05.355 [I] [main.go:50] Logging configured successfully
2024/08/21 11:27:05.362 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:27:46.078 [I] [main.go:50] Logging configured successfully
2024/08/21 11:27:46.107 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:27:50.545 [D] [router.go:1306] | ::1| 200 | 43.988167ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:29:27.113 [D] [router.go:1306] | ::1| 200 | 8.218334ms| match| GET  /biddingrequeststatusdetails/request_id/1931110 r:/biddingrequeststatusdetails/request_id/:request_id
2024/08/21 11:30:46.725 [I] [main.go:50] Logging configured successfully
2024/08/21 11:30:46.734 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:32:38.512 [I] [main.go:50] Logging configured successfully
2024/08/21 11:32:38.534 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:32:41.025 [D] [router.go:1306] | ::1| 200 | 45.082949ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:32:49.857 [D] [router.go:1306] | ::1| 200 | 22.881234ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:35:12.757 [I] [main.go:50] Logging configured successfully
2024/08/21 11:35:12.762 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:35:16.440 [D] [router.go:1306] | ::1| 200 | 47.493224ms| match| GET  //tripdetailswithbids/1931110 r:/tripdetailswithbids/:request_id
2024/08/21 11:36:11.414 [D] [router.go:1306] | ::1| 200 | 8.823235ms| match| GET  /bidstatusdetails/bid_id/11163029 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 11:37:50.309 [D] [router.go:1306] | ::1| 200 | 72.941415ms| match| GET  /bidstatusdetails r:/bidstatusdetails
2024/08/21 11:38:06.197 [D] [router.go:1306] | ::1| 200 | 5.14843ms| match| GET  /bidstatusdetails/bid_id/11163022 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 11:40:08.199 [D] [router.go:1306] | ::1| 200 | 10.916614ms| match| GET  /triprequestdetails/1931111 r:/triprequestdetails/:request_id
2024/08/21 11:40:23.174 [D] [router.go:1306] | ::1| 200 | 8.546973ms| match| GET  /triprequeststatus/1931111 r:/triprequeststatus/:request_id
2024/08/21 11:46:18.767 [D] [router.go:1306] | ::1| 200 | 22.978501ms| match| GET  //tripdetailswithbids/1931112 r:/tripdetailswithbids/:request_id
2024/08/21 11:47:27.367 [D] [router.go:1306] | ::1| 200 | 24.152853ms| match| GET  //tripdetailswithbids/1931112 r:/tripdetailswithbids/:request_id
2024/08/21 11:49:17.539 [I] [main.go:50] Logging configured successfully
2024/08/21 11:49:17.544 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:49:19.264 [I] [main.go:50] Logging configured successfully
2024/08/21 11:49:19.273 [I] [server.go:280] http server Running on http://:8081
2024/08/21 11:49:55.559 [D] [router.go:1306] | ::1| 200 | 45.472212ms| match| GET  //tripdetailswithbids/1931112 r:/tripdetailswithbids/:request_id
2024/08/21 11:51:31.224 [D] [router.go:1306] | ::1| 200 | 9.516982ms| match| GET  /biddingrequeststatusdetails/request_id/1931111 r:/biddingrequeststatusdetails/request_id/:request_id
2024/08/21 11:51:45.673 [D] [router.go:1306] | ::1| 200 | 6.354155ms| match| GET  /biddingrequeststatusdetails/request_id/1931112 r:/biddingrequeststatusdetails/request_id/:request_id
2024/08/21 11:56:11.246 [D] [router.go:1306] | ::1| 200 | 9.245199ms| match| GET  /biddingrequestbiddetails/request_id/1931112 r:/biddingrequestbiddetails/request_id/:request_id
2024/08/21 11:59:56.548 [I] [main.go:50] Logging configured successfully
2024/08/21 11:59:56.552 [I] [server.go:280] http server Running on http://:8081
2024/08/21 12:01:02.544 [D] [router.go:1306] | ::1| 200 | 56.82517ms| match| GET  /bidstatusdetails/bid_id/11163031 r:/bidstatusdetails/bid_id/:bid_id
2024/08/21 12:02:49.176 [I] [main.go:50] Logging configured successfully
2024/08/21 12:02:49.180 [I] [server.go:280] http server Running on http://:8081
2024/08/21 12:04:29.652 [I] [main.go:50] Logging configured successfully
2024/08/21 12:04:29.657 [I] [server.go:280] http server Running on http://:8081
2024/08/21 12:04:32.762 [I] [main.go:50] Logging configured successfully
2024/08/21 12:04:32.770 [I] [server.go:280] http server Running on http://:8081
2024/08/21 12:04:36.737 [D] [router.go:1306] | ::1| 200 | 46.98855ms| match| GET  //tripdetailswithbids/1931112 r:/tripdetailswithbids/:request_id
2024/08/21 12:09:45.380 [I] [main.go:50] Logging configured successfully
2024/08/21 12:09:45.396 [I] [server.go:280] http server Running on http://:8081
2024/08/21 12:10:26.333 [I] [main.go:50] Logging configured successfully
2024/08/21 12:10:26.339 [I] [server.go:280] http server Running on http://:8081
2024/08/21 12:11:00.008 [I] [main.go:50] Logging configured successfully
2024/08/21 12:11:00.011 [I] [server.go:280] http server Running on http://:8081
2024/08/21 12:11:19.108 [I] [main.go:50] Logging configured successfully
2024/08/21 12:11:19.130 [I] [server.go:280] http server Running on http://:8081
module RequestTrip
go 1.22
require github.com/beego/beego/v2 v2.3.0
require github.com/smartystreets/goconvey v1.6.4
require (
filippo.io/edwards25519 v1.1.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
)
require (
github.com/beego/beego v1.12.13
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/go-sql-driver/mysql v1.8.1
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/Knetic/govaluate v3.0.0+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6/go.mod h1:SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc=
github.com/alicebob/miniredis v2.5.0+incompatible/go.mod h1:8HZjEj4yU0dwhYHky+DxYx+6BMjkBbe5ONFIF1MXffk=
github.com/beego/beego v1.12.13 h1:g39O1LGLTiPejWVqQKK/TFGrroW9BCZQz6/pf4S8IRM=
github.com/beego/beego v1.12.13/go.mod h1:QURFL1HldOcCZAxnc1cZ7wrplsYR5dKPHFjmk6WkLAs=
github.com/beego/beego/v2 v2.3.0 h1:iECVwzm6egw6iw6tkWrEDqXG4NQtKLQ6QBSYqlM6T/I=
github.com/beego/beego/v2 v2.3.0/go.mod h1:Ob/5BJ9fIKZLd4s9ZV3o9J6odkkIyL83et+p98gyYXo=
github.com/beego/goyaml2 v0.0.0-20130207012346-5545475820dd/go.mod h1:1b+Y/CofkYwXMUU0OhQqGvsY2Bvgr4j6jfT699wyZKQ=
github.com/beego/x2j v0.0.0-20131220205130-a0352aadc542/go.mod h1:kSeGC/p1AbBiEp5kat81+DSQrZenVBZXklMLaELspWU=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60=
github.com/casbin/casbin v1.7.0/go.mod h1:c67qKN6Oum3UF5Q1+BByfFxkwKvhwW57ITjqwtzR1KE=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58/go.mod h1:EOBUe0h4xcZ5GoxqC5SDxFQ8gwyZPKQoEzownBlhI80=
github.com/couchbase/go-couchbase v0.0.0-20201216133707-c04035124b17/go.mod h1:+/bddYDxXsf9qt0xpDUtRR47A2GjaXmGGAqQ/k3GJ8A=
github.com/couchbase/gomemcached v0.1.2-0.20201224031647-c432ccf49f32/go.mod h1:mxliKQxOv84gQ0bJWbI+w9Wxdpt9HjDvgW9MjCym5Vo=
github.com/couchbase/goutils v0.0.0-20210118111533-e33d3ffb5401/go.mod h1:BQwMFlJzDjFDG3DJUdU0KORxn88UlsOULuxLExMh3Hs=
github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76/go.mod h1:vYwsqCOLxGiisLwp9rITslkFNpZD5rz43tf41QFkTWY=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
github.com/elastic/go-elasticsearch/v6 v6.8.5/go.mod h1:UwaDJsD3rWLM5rKNFzv9hgox93HoX8utj1kxD9aFUcI=
github.com/elazarl/go-bindata-assetfs v1.0.0/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/glendc/gopher-json v0.0.0-20170414221815-dc4743023d0c/go.mod h1:Gja1A+xZ9BoviGJNA2E9vFkPjjsl+CoJxSXiQM1UXtw=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
github.com/go-redis/redis v6.14.2+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/ledisdb/ledisdb v0.0.0-20200510135210-d35789ec47e6/go.mod h1:n931TsDuKuq+uX4v1fulaMbA/7ZLLhjc85h7chZGBCQ=
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg=
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/pelletier/go-toml v1.0.1/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
github.com/peterh/liner v1.0.1-0.20171122030339-3681c2a91233/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
github.com/prometheus/client_golang v1.7.0/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU=
github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k=
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw=
github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI=
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
github.com/prometheus/common v0.48.0 h1:QO8U2CdOzSn1BBsmXJXduaaW+dY/5QLjfB8svtSzKKE=
github.com/prometheus/common v0.48.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc=
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo=
github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo=
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644/go.mod h1:nkxAfR/5quYxwPZhyDxgasBMnRtBZd0FCEpawpjMUFg=
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 h1:DAYUYH5869yV94zvCES9F51oYtN5oGlwjxJJz7ZCnik=
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18/go.mod h1:nkxAfR/5quYxwPZhyDxgasBMnRtBZd0FCEpawpjMUFg=
github.com/siddontang/go v0.0.0-20170517070808-cb568a3e5cc0/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw=
github.com/siddontang/goredis v0.0.0-20150324035039-760763f78400/go.mod h1:DDcKzU3qCuvj/tPnimWSsZZzvk9qvkvrIL5naVBPh5s=
github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod h1:AMEsy7v5z92TR1JKMkLLoaOQk++LVnOKL3ScbJ8GNGA=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/ssdb/gossdb v0.0.0-20180723034631-88f6b59b84ec/go.mod h1:QBvMkMya+gXctz3kmljlUCu/yB3GZ6oee+dUozsezQE=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/syndtr/goleveldb v0.0.0-20160425020131-cfa635847112/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0=
github.com/ugorji/go v0.0.0-20171122102828-84cb69a8af83/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
github.com/wendal/errors v0.0.0-20181209125328-7f31f4b264ec/go.mod h1:Q12BUT7DqIlHRmgv3RskH+UCM/4eqVMgI0EMmlSpAXc=
github.com/yuin/gopher-lua v0.0.0-20171031051903-609c9cd26973/go.mod h1:aEV29XrmTYFr3CiRxZeGHpkvbwq+prZduBqMaascyCU=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
package main
import (
_ "RequestTrip/routers"
"log"
"github.com/beego/beego/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
_ "github.com/go-sql-driver/mysql"
)
// dbConnection establishes a connection to the database.
func dbConnection() {
sqlconn, err := web.AppConfig.String("sqlconn")
if err != nil {
logs.Error("Failed to retrieve SQL connection string from config: %v", err)
log.Fatal(err)
return
}
err = orm.RegisterDataBase("default", "mysql", sqlconn)
if err != nil {
logs.Error("Failed to register database: %v", err)
return
}
logs.Info("Database connection established successfully")
}
// init initializes the database connection and logging settings.
func init() {
logs.Info("Starting database connection setup...")
err := orm.RegisterDriver("mysql", orm.DRMySQL)
if err != nil {
logs.Error("Failed to register MySQL driver: %v", err)
return
}
dbConnection()
// Configure logging
logConfig := `{"filename":"error.log","perm":"777","level":7,"maxlines":0,"maxsize":0,"daily":true,"maxdays":10,"color":true}`
err = logs.SetLogger(logs.AdapterFile, logConfig)
if err != nil {
logs.Error("Failed to configure logging: %v", err)
return
}
logs.Info("Logging configured successfully")
}
func main() {
web.Run()
}
package models
import (
"time"
"github.com/beego/beego/orm"
)
func init() {
orm.RegisterModel(new(TripRequestDetails), new(BiddingTripAdditionalDetails), new(BiddingRequestBidDetails), new(BiddingRequestStatusDetails), new(BidStatusDetails))
}
// TripRequestDetails model
type TripRequestDetails struct {
RequestID int `orm:"pk;column(request_id)" json:"request_id"`
ShipperID int `orm:"column(shipper_id)" json:"shipper_id"`
ShipperType string `orm:"column(shipper_type)" json:"shipper_type"`
PickAddBookID *int `orm:"column(pick_add_book_id)" json:"pick_add_book_id"`
PickThanaID *int `orm:"column(pick_thana_id)" json:"pick_thana_id"`
PickUnionID int `orm:"column(pick_union_id)" json:"pick_union_id"`
PickAreaID int `orm:"column(pick_area_id)" json:"pick_area_id"`
PickAdd *string `orm:"column(pick_add)" json:"pick_add"`
DropAddBookID *int `orm:"column(drop_add_book_id)" json:"drop_add_book_id"`
CustomFullPickAddEng *string `orm:"column(custom_full_pick_add_eng)" json:"custom_full_pick_add_eng"`
CustomFullPickAddBng *string `orm:"column(custom_full_pick_add_bng)" json:"custom_full_pick_add_bng"`
CustomFullDropAddEng *string `orm:"column(custom_full_drop_add_eng)" json:"custom_full_drop_add_eng"`
CustomFullDropAddBng *string `orm:"column(custom_full_drop_add_bng)" json:"custom_full_drop_add_bng"`
DropThanaID *int `orm:"column(drop_thana_id)" json:"drop_thana_id"`
DropUnionID int `orm:"column(drop_union_id)" json:"drop_union_id"`
DropAreaID int `orm:"column(drop_area_id)" json:"drop_area_id"`
DropAdd *string `orm:"column(drop_add)" json:"drop_add"`
PickTime *string `orm:"column(pick_time)" json:"pick_time"`
MultiplePickDrop *int `orm:"column(multiple_pick_drop)" json:"multiple_pick_drop"`
AdditionalService *int `orm:"column(additional_service)" json:"additional_service"`
TTCategory int `orm:"column(tt_category)" json:"tt_category"`
TTOpenCover string `orm:"column(tt_open_cover)" json:"tt_open_cover"`
ProductType *string `orm:"column(product_type)" json:"product_type"`
ProductCategoryEng string `orm:"column(product_category_eng)" json:"product_category_eng"`
ProductCategoryBng string `orm:"column(product_category_bng)" json:"product_category_bng"`
AddedPromoID *int `orm:"column(added_promo_id)" json:"added_promo_id"`
TripPrice *float64 `orm:"column(trip_price)" json:"trip_price"`
TripPriceBeforeAccountCharges float64 `orm:"column(trip_price_before_account_charges)" json:"trip_price_before_account_charges"`
ShipperBudget *float64 `orm:"column(shipper_budget)" json:"shipper_budget"`
FraudHappened string `orm:"column(fraud_happened)" json:"fraud_happened"`
TripReferredFrom *string `orm:"column(trip_referred_from)" json:"trip_referred_from"`
IsCreditTrip *int `orm:"column(is_credit_trip)" json:"is_credit_trip"`
IsCashTrip int `orm:"column(is_cash_trip)" json:"is_cash_trip"`
SubType string `orm:"column(sub_type)" json:"sub_type"`
IsProjectTrip int `orm:"column(is_project_trip)" json:"is_project_trip"`
PickLat float64 `orm:"column(pick_lat)" json:"pick_lat"`
PickLng float64 `orm:"column(pick_lng)" json:"pick_lng"`
DropLat float64 `orm:"column(drop_lat)" json:"drop_lat"`
DropLng float64 `orm:"column(drop_lng)" json:"drop_lng"`
CreateDate *string `orm:"column(create_date)" json:"create_date"`
UpdateBy *string `orm:"column(update_by)" json:"update_by"`
UpdateDate *string `orm:"column(update_date)" json:"update_date"`
ProjectID int `orm:"column(project_id)" json:"project_id"`
OrderID *string `orm:"column(order_id)" json:"order_id"`
}
type BiddingTripAdditionalDetails struct {
TripDetailsID int `orm:"pk;column(trip_details_id)" json:"trip_details_id"`
RequestID int `orm:"column(request_id)" json:"request_id"`
CompanyName *string `orm:"column(company_name)" json:"company_name"`
ShipperName string `orm:"column(shipper_name)" json:"shipper_name"`
ShipperPhone string `orm:"column(shipper_phone)" json:"shipper_phone"`
PickContactPersonName *string `orm:"column(pick_contact_person_name)" json:"pick_contact_person_name"`
PickContactPersonPhone *string `orm:"column(pick_contact_person_phone)" json:"pick_contact_person_phone"`
PickAddressName *string `orm:"column(pick_address_name)" json:"pick_address_name"`
DropContactPersonName *string `orm:"column(drop_contact_person_name)" json:"drop_contact_person_name"`
DropContactPersonPhone *string `orm:"column(drop_contact_person_phone)" json:"drop_contact_person_phone"`
DropAddressName *string `orm:"column(drop_address_name)" json:"drop_address_name"`
PromoCode *string `orm:"column(promo_code)" json:"promo_code"`
PromoID *int `orm:"column(promo_id)" json:"promo_id"`
PromoAppliedBidID *int `orm:"column(promo_applied_bid_id)" json:"promo_applied_bid_id"`
PromoAmount *float64 `orm:"column(promo_amount)" json:"promo_amount"`
PromoRate *float64 `orm:"column(promo_rate)" json:"promo_rate"`
ShipperRating string `orm:"column(shipper_rating)" json:"shipper_rating"`
ServiceName *string `orm:"column(service_name)" json:"service_name"`
ServiceNameBng *string `orm:"column(service_name_bng)" json:"service_name_bng"`
ReflectionToOwner *string `orm:"column(reflection_to_owner)" json:"reflection_to_owner"`
ReflectionToShipper *string `orm:"column(reflection_to_shipper)" json:"reflection_to_shipper"`
MultipleDropDetails *string `orm:"column(multiple_drop_details)" json:"multiple_drop_details"`
MultipleDropCount *int `orm:"column(multiple_drop_count)" json:"multiple_drop_count"`
IsRoundTrip *int `orm:"column(is_round_trip)" json:"is_round_trip"`
HasAdditionalCharge *int `orm:"column(has_additional_charge)" json:"has_additional_charge"`
CreatedFrom *string `orm:"column(created_from)" json:"created_from"`
AppType *string `orm:"column(app_type)" json:"app_type"`
CreateDate *string `orm:"column(create_date)" json:"create_date"`
UpdateDate *string `orm:"column(update_date)" json:"update_date"`
KamName *string `orm:"column(kam_name)" json:"kam_name"`
KamPhone *string `orm:"column(kam_phone)" json:"kam_phone"`
LowerPriceRange float64 `orm:"column(lower_price_range)" json:"lower_price_range"`
UpperPriceRange float64 `orm:"column(upper_price_range)" json:"upper_price_range"`
}
type BiddingRequestBidDetails struct {
BidID int `orm:"pk;column(bid_id)" json:"bid_id"`
RequestID int `orm:"column(request_id)" json:"request_id"`
OwnerID int `orm:"column(owner_id)" json:"owner_id"`
OwnerUsername *string `orm:"column(owner_username)" json:"owner_username"`
OwnerPhone *string `orm:"column(owner_phone)" json:"owner_phone"`
OwnerRating *string `orm:"column(owner_rating)" json:"owner_rating"`
TruckRating *string `orm:"column(truck_rating)" json:"truck_rating"`
TruckID int `orm:"column(truck_id)" json:"truck_id"`
TruckNo *string `orm:"column(truck_no)" json:"truck_no"`
TruckCategory *int `orm:"column(truck_category)" json:"truck_category"`
TruckCategoryText *string `orm:"column(truck_category_text)" json:"truck_category_text"`
TruckShape *string `orm:"column(truck_shape)" json:"truck_shape"`
Model *string `orm:"column(model)" json:"model"`
ImeiID *int64 `orm:"column(imei_id)" json:"imei_id"`
Rate float64 `orm:"column(rate)" json:"rate"`
RateWithoutCommission *float64 `orm:"column(rate_without_commission)" json:"rate_without_commission"`
RateBeforeAccountCharges float64 `orm:"column(rate_before_account_charges)" json:"rate_before_account_charges"`
RateUpdateCount uint `orm:"column(rate_update_count)" json:"rate_update_count"`
CreateDate *string `orm:"column(create_date)" json:"create_date"`
UpdateBy *string `orm:"column(update_by)" json:"update_by"`
UpdateDate *string `orm:"column(update_date)" json:"update_date"`
IsFavourite *int `orm:"column(is_favourite)" json:"is_favourite"`
IsBan *int `orm:"column(is_ban)" json:"is_ban"`
CreatedFrom *string `orm:"column(created_from)" json:"created_from"`
}
type BiddingRequestStatusDetails struct {
StatusDetailsID int `orm:"pk;column(status_details_id)" json:"status_details_id"`
RequestID int `orm:"column(request_id)" json:"request_id"`
Status string `orm:"column(status)" json:"status"`
AdminUser *string `orm:"column(admin_user)" json:"admin_user"`
UpdatedBy *string `orm:"column(updated_by)" json:"updated_by"`
CancellationReasonID *int `orm:"column(cancellation_reason_id)" json:"cancellation_reason_id"`
CancellationReason *string `orm:"column(cancellation_reason)" json:"cancellation_reason"`
CancelledByWhom *string `orm:"column(cancelled_by_whom)" json:"cancelled_by_whom"`
ReactiveBy *string `orm:"column(reactive_by)" json:"reactive_by"`
CreateDate *string `orm:"column(create_date)" json:"create_date"`
}
type BidStatusDetails struct {
StatusDetailsID int `orm:"pk;column(status_details_id)" json:"status_details_id"`
BidID int `orm:"column(bid_id)" json:"bid_id"`
Price float64 `orm:"column(price)" json:"price"`
Status string `orm:"column(status)" json:"status"`
AdminUser *string `orm:"column(admin_user)" json:"admin_user"`
CancellationReasonID *int `orm:"column(cancellation_reason_id)" json:"cancellation_reason_id"`
CancellationReason *string `orm:"column(cancellation_reason)" json:"cancellation_reason"`
CancelledByWhom *string `orm:"column(cancelled_by_whom)" json:"cancelled_by_whom"`
UpdatedBy *string `orm:"column(updated_by)" json:"updated_by"`
CreateDate time.Time `orm:"column(create_date);type(datetime);auto_now_add" json:"create_date"`
}
// TableName sets the name of the table in the database.
func (t *TripRequestDetails) TableName() string {
return "trip_request_details"
}
func (b *BiddingTripAdditionalDetails) TableName() string {
return "bidding_trip_additional_details"
}
func (b *BiddingRequestBidDetails) TableName() string {
return "bidding_request_bid_details"
}
func (b *BiddingRequestStatusDetails) TableName() string {
return "bidding_request_status_details"
}
func (b *BidStatusDetails) TableName() string {
return "bid_status_details"
}
\ No newline at end of file
package routers
import (
"RequestTrip/controllers"
"github.com/beego/beego/v2/server/web"
)
func init() {
//sob trip eksathe dekhay
web.Router("/triprequestdetails", &controllers.TripRequestDetailsController{}, "get:GetAll")
//request id diye trip dekhay
web.Router("/triprequestdetails/:request_id", &controllers.TripRequestDetailsController{}, "get:GetByID")
//bid status dekhay
web.Router("/triprequeststatus/:request_id", &controllers.TripRequestStatusController{}, "get:GetStatusByRequestID")
//request id diye bidding request status dekhay
web.Router("/biddingrequestbiddetails/request_id/:request_id", &controllers.BiddingRequestBidDetailsController{}, "get:GetByRequestID")
//bid id diye bidding request status dekhay
web.Router("/biddingrequestbiddetails/bid_id/:bid_id", &controllers.BiddingRequestBidDetailsController{}, "get:GetByBidID")
//Addiitonal details dekhay
web.Router("/biddingtripadditionaldetails", &controllers.BiddingTripAdditionalDetailsController{}, "get:Get")
//Addition details dekhay request id diye
web.Router("/biddingtripadditionaldetails/request_id/:request_id", &controllers.BiddingTripAdditionalDetailsController{}, "get:GetWithTripRequestDetails")
//bidding request status using request id
web.Router("/biddingrequeststatusdetails", &controllers.BiddingRequestStatusDetailsController{}, "get:Get")
web.Router("/biddingrequeststatusdetails/request_id/:request_id", &controllers.BiddingRequestStatusDetailsController{}, "get:GetByRequestID")
//Bid status details dekhay using bid id
web.Router("/bidstatusdetails", &controllers.BidStatusDetailsController{}, "get:Get")
web.Router("/bidstatusdetails/bid_id/:bid_id", &controllers.BidStatusDetailsController{}, "get:GetByBidID")
// New route for trip details with bids
web.Router("/tripdetailswithbids/:request_id", &controllers.TripDetailsWithBidsController{}, "get:GetTripDetailsWithBids")
}
package test
import (
"net/http"
"net/http/httptest"
"testing"
"runtime"
"path/filepath"
_ "RequestTrip/routers"
beego "github.com/beego/beego/v2/server/web"
"github.com/beego/beego/v2/core/logs"
. "github.com/smartystreets/goconvey/convey"
)
func init() {
_, file, _, _ := runtime.Caller(0)
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator))))
beego.TestBeegoInit(apppath)
}
// TestGet is a sample to run an endpoint test
func TestGet(t *testing.T) {
r, _ := http.NewRequest("GET", "/v1/object", nil)
w := httptest.NewRecorder()
beego.BeeApp.Handlers.ServeHTTP(w, r)
logs.Info("testing", "TestGet", "Code[%d]\n%s", w.Code, w.Body.String())
Convey("Subject: Test Station Endpoint\n", t, func() {
Convey("Status Code Should Be 200", func() {
So(w.Code, ShouldEqual, 200)
})
Convey("The Result Should Not Be Empty", func() {
So(w.Body.Len(), ShouldBeGreaterThan, 0)
})
})
}
appname = Todo
httpport = 8080
runmode = dev
autorender = false
copyrequestbody = true
EnableDocs = true
sqlconn =
package controllers
import (
"Todo/models"
"encoding/json"
beego "github.com/beego/beego/v2/server/web"
)
// Operations about object
type ObjectController struct {
beego.Controller
}
// @Title Create
// @Description create object
// @Param body body models.Object true "The object content"
// @Success 200 {string} models.Object.Id
// @Failure 403 body is empty
// @router / [post]
func (o *ObjectController) Post() {
var ob models.Object
json.Unmarshal(o.Ctx.Input.RequestBody, &ob)
objectid := models.AddOne(ob)
o.Data["json"] = map[string]string{"ObjectId": objectid}
o.ServeJSON()
}
// @Title Get
// @Description find object by objectid
// @Param objectId path string true "the objectid you want to get"
// @Success 200 {object} models.Object
// @Failure 403 :objectId is empty
// @router /:objectId [get]
func (o *ObjectController) Get() {
objectId := o.Ctx.Input.Param(":objectId")
if objectId != "" {
ob, err := models.GetOne(objectId)
if err != nil {
o.Data["json"] = err.Error()
} else {
o.Data["json"] = ob
}
}
o.ServeJSON()
}
// @Title GetAll
// @Description get all objects
// @Success 200 {object} models.Object
// @Failure 403 :objectId is empty
// @router / [get]
func (o *ObjectController) GetAll() {
obs := models.GetAll()
o.Data["json"] = obs
o.ServeJSON()
}
// @Title Update
// @Description update the object
// @Param objectId path string true "The objectid you want to update"
// @Param body body models.Object true "The body"
// @Success 200 {object} models.Object
// @Failure 403 :objectId is empty
// @router /:objectId [put]
func (o *ObjectController) Put() {
objectId := o.Ctx.Input.Param(":objectId")
var ob models.Object
json.Unmarshal(o.Ctx.Input.RequestBody, &ob)
err := models.Update(objectId, ob.Score)
if err != nil {
o.Data["json"] = err.Error()
} else {
o.Data["json"] = "update success!"
}
o.ServeJSON()
}
// @Title Delete
// @Description delete the object
// @Param objectId path string true "The objectId you want to delete"
// @Success 200 {string} delete success!
// @Failure 403 objectId is empty
// @router /:objectId [delete]
func (o *ObjectController) Delete() {
objectId := o.Ctx.Input.Param(":objectId")
models.Delete(objectId)
o.Data["json"] = "delete success!"
o.ServeJSON()
}
package controllers
import (
"Todo/models"
"encoding/json"
beego "github.com/beego/beego/v2/server/web"
)
// Operations about Users
type UserController struct {
beego.Controller
}
// @Title CreateUser
// @Description create users
// @Param body body models.User true "body for user content"
// @Success 200 {int} models.User.Id
// @Failure 403 body is empty
// @router / [post]
func (u *UserController) Post() {
var user models.User
json.Unmarshal(u.Ctx.Input.RequestBody, &user)
uid := models.AddUser(user)
u.Data["json"] = map[string]string{"uid": uid}
u.ServeJSON()
}
// @Title GetAll
// @Description get all Users
// @Success 200 {object} models.User
// @router / [get]
func (u *UserController) GetAll() {
users := models.GetAllUsers()
u.Data["json"] = users
u.ServeJSON()
}
// @Title Get
// @Description get user by uid
// @Param uid path string true "The key for staticblock"
// @Success 200 {object} models.User
// @Failure 403 :uid is empty
// @router /:uid [get]
func (u *UserController) Get() {
uid := u.GetString(":uid")
if uid != "" {
user, err := models.GetUser(uid)
if err != nil {
u.Data["json"] = err.Error()
} else {
u.Data["json"] = user
}
}
u.ServeJSON()
}
// @Title Update
// @Description update the user
// @Param uid path string true "The uid you want to update"
// @Param body body models.User true "body for user content"
// @Success 200 {object} models.User
// @Failure 403 :uid is not int
// @router /:uid [put]
func (u *UserController) Put() {
uid := u.GetString(":uid")
if uid != "" {
var user models.User
json.Unmarshal(u.Ctx.Input.RequestBody, &user)
uu, err := models.UpdateUser(uid, &user)
if err != nil {
u.Data["json"] = err.Error()
} else {
u.Data["json"] = uu
}
}
u.ServeJSON()
}
// @Title Delete
// @Description delete the user
// @Param uid path string true "The uid you want to delete"
// @Success 200 {string} delete success!
// @Failure 403 uid is empty
// @router /:uid [delete]
func (u *UserController) Delete() {
uid := u.GetString(":uid")
models.DeleteUser(uid)
u.Data["json"] = "delete success!"
u.ServeJSON()
}
// @Title Login
// @Description Logs user into the system
// @Param username query string true "The username for login"
// @Param password query string true "The password for login"
// @Success 200 {string} login success
// @Failure 403 user not exist
// @router /login [get]
func (u *UserController) Login() {
username := u.GetString("username")
password := u.GetString("password")
if models.Login(username, password) {
u.Data["json"] = "login success"
} else {
u.Data["json"] = "user not exist"
}
u.ServeJSON()
}
// @Title logout
// @Description Logs out current logged in user session
// @Success 200 {string} logout success
// @router /logout [get]
func (u *UserController) Logout() {
u.Data["json"] = "logout success"
u.ServeJSON()
}
module Todo
go 1.22
require github.com/beego/beego/v2 v2.3.0
require github.com/smartystreets/goconvey v1.6.4
require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment