Documentation ¶
Index ¶
- Constants
- func GetAppName(c *gin.Context)
- func GetMimeType(filename string) string
- func GetStaticFile(c *gin.Context)
- func LogList(c *gin.Context)
- func NoRouteResponseLogger(c *gin.Context)
- func ObtainBodyLogWriter(c *gin.Context) types.BodyLogWriterResponse
- func RequestList(c *gin.Context)
- func ResponseLogger(c *gin.Context)
- func SearchLog(c *gin.Context)
- func SearchLogOptions(c *gin.Context)
- func SearchRequest(c *gin.Context)
- func SearchRequestOptions(c *gin.Context)
- func ShowDashboard(c *gin.Context)
- func ShowLog(c *gin.Context)
- func ShowRequest(c *gin.Context)
- func ShowSystemInfo(c *gin.Context)
- type LoggerGoScope
Constants ¶
const ( BytesInOneGigabyte = 1073741824 SecondsInOneMinute = 60 )
Variables ¶
This section is empty.
Functions ¶
func GetAppName ¶
func GetMimeType ¶
GetMimeType gets the mime type of a file by its name.
func GetStaticFile ¶
GetStaticFile returns a static file that is requested by the front-end.
func NoRouteResponseLogger ¶
NoRouteResponseLogger logs an HTTP response to the DB and prints to Stdout for requests that match no route.
func ObtainBodyLogWriter ¶
func ObtainBodyLogWriter(c *gin.Context) types.BodyLogWriterResponse
ObtainBodyLogWriter will read the request body and return a reader/writer.
func RequestList ¶
RequestList is the controller for the requests list page in GoScope API.
func ResponseLogger ¶
ResponseLogger logs an HTTP response to the DB and print to Stdout.
func SearchLogOptions ¶
func SearchRequest ¶
SearchRequest is the controller for the search requests list page in GoScope API.
func SearchRequestOptions ¶
SearchRequestOptions is the controller for the search requests list OPTIONS method in GoScope API.
func ShowDashboard ¶
ShowDashboard returns the front-end's index.html.
func ShowRequest ¶
ShowRequest is the controller for a detailed request/response page in GoScope API.
func ShowSystemInfo ¶
ShowSystemInfo is the controller to show system information of the current host in GoScope API.
Types ¶
type LoggerGoScope ¶
LoggerGoScope is the main logger for the application.