Documentation
¶
Index ¶
Constants ¶
View Source
const ( MySQL = "mysql" PostgreSQL = "postgres" SQLite = "sqlite3" )
View Source
const ( RegularSearchFilter = 0 ClientIPSearchFilter = 1 MethodSearchFilter = 2 URLPathSearchFilter = 3 HostSearchFilter = 4 BodySearchFilter = 5 UserAgentSearchFilter = 6 TimeSearchFilter = 7 StatusSearchFilter = 8 HeadersSearchFilter = 9 )
Variables ¶
This section is empty.
Functions ¶
func DumpRequestResponse ¶
Types ¶
type DetailedRequest ¶
type DetailedRequest struct {
Body string `json:"body"`
ClientIP string `json:"clientIP"`
Headers string `json:"headers"`
Host string `json:"host"`
Method string `json:"method"`
Path string `json:"path"`
Referrer string `json:"referrer"`
Time int `json:"time"`
UID string `json:"uid"`
URL string `json:"url"`
UserAgent string `json:"userAgent"`
}
func FetchDetailedRequest ¶
func FetchDetailedRequest(db *sql.DB, requestUID string) DetailedRequest
FetchDetailedRequest fetches all details from a request via its UUID.
type DetailedResponse ¶
type DetailedResponse struct {
Body string `json:"body"`
ClientIP string `json:"clientIP"`
Headers string `json:"headers"`
Path string `json:"path"`
Size int `json:"size"`
Status string `json:"status"`
Time int `json:"time"`
RequestUID string `json:"requestUID"`
UID string `json:"uid"`
}
func FetchDetailedResponse ¶
func FetchDetailedResponse(db *sql.DB, responseUUID string) DetailedResponse
FetchDetailedResponse fetches all details of a response via its UUID.
type DumpResponsePayload ¶
type ExceptionRecord ¶
type ExceptionRecord struct {
Error string `json:"error"`
Time int `json:"time"`
UID string `json:"uid"`
}
func FetchDetailedLog ¶
func FetchDetailedLog(db *sql.DB, requestUID string) ExceptionRecord
func FetchLogs ¶
func FetchLogs(db *sql.DB, appID string, entriesPerPage int, databaseType string, offset int) []ExceptionRecord
Get a summarized list of application logs from the DB.
func FetchSearchLogs ¶
type RequestFilter ¶
type SummarizedRequest ¶
type SummarizedRequest struct {
Method string `json:"method"`
Path string `json:"path"`
Time int `json:"time"`
UID string `json:"uid"`
ResponseStatus int `json:"responseStatus"`
}
func FetchRequestList ¶
func FetchRequestList(db *sql.DB, appID string, entriesPerPage, offset int) []SummarizedRequest
FetchRequestList fetches a list of summarized requests.
func FetchSearchRequests ¶
func FetchSearchRequests(db *sql.DB, appID string, entriesPerPage int, search string, offset int, searchType int) []SummarizedRequest
FetchSearchRequests fetches a list of summarized requests that match the input parameters of search.
Click to show internal directories.
Click to hide internal directories.