modulepackage
0.1.7
Repository: https://github.com/opentreehole/go-common.git
Documentation: pkg.go.dev
# README
go-common
a common module for OpenTreeHole Go projects.
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
GetJWTToken extracts token from header or cookie return empty string if not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Message return MessageResponse.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseJWTToken extracts and parse token, whatever start with "Bearer " or not.
RegisterApp registers the fiber app to the common package It should be called before any test.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateBody parse, set default and validate body based on Content-Type.
ValidateQuery parse, set default and validate query into model.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
map[userID]Tester.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RequestConfig is a struct that contains the config of a request.
Tester is a struct that mocks a request user.