database

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

License: MIT Authors:

  • Josep Jesus Bigorra Algaba (@averageflow)

License: MIT Authors:

  • Josep Jesus Bigorra Algaba (@averageflow)

License: MIT Authors:

  • Josep Jesus Bigorra Algaba (@averageflow)

Index

Constants

View Source
const (
	MySQL      = "mysql"
	PostgreSQL = "postgres"
	SQLite     = "sqlite3"
)

Variables

This section is empty.

Functions

func DumpResponse added in v1.6.3

func DumpResponse(c *gin.Context, responsePayload utils.DumpResponsePayload, body string)

func GetDetailedLog

func GetDetailedLog(db *sql.DB, connection, requestUID string) *sql.Row

func GetDetailedRequest

func GetDetailedRequest(db *sql.DB, connection, requestUID string) *sql.Row

func GetDetailedResponse

func GetDetailedResponse(db *sql.DB, connection, requestUID string) *sql.Row

func GetLogs

func GetLogs(db *sql.DB, connection string, offset int) *sql.Rows

func GetRequests

func GetRequests(db *sql.DB, connection string, offset int) *sql.Rows

func SearchLogs

func SearchLogs(db *sql.DB, connection, searchWildcard string, offset int) *sql.Rows

func SearchRequests

func SearchRequests(db *sql.DB, connection, search string,
	filter *RequestFilter, offset int) (*sql.Rows, error)

func WriteLogs added in v1.6.3

func WriteLogs(message string)

Types

type RequestFilter added in v1.7.0

type RequestFilter struct {
	Method []string `json:"method"`
	Status []int    `json:"status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL