# Functions
CreateJWTStringToken create JWT String token based on arguments.
Glob returns the names of all files matching pattern or nil if there is no matching file.
IsRoleValid ini melakukan validasi apakah Role-Role yang menjadi syarat untuk mengakses sebuah resource (requires) bisa dipenuhi oleh seorang pengakses yang memiliki Role-Role tertentu (supplied).
MakeRandomString produces a string contains random character with defined specification.
Match returns true if name matches the shell file name pattern.
NewPage create a new page structure based on page request and total number of items.
NewPageRequestFromRequest create new page request information based on the http request query.
NewTokenFactory create new instance of TokenFactory.
ParsePathParams parse request path param according to path template and extract its values.
PathMatch is like Match except that it uses your system's path separator.
ReadJWTStringToken takes a token string , keys, signMethod and returns its content.
StringArrayContainString returns true if the array contains specified string.
StringToIntHash will create an int hash out of a string.
WriteHTTPResponse into the response writer, according to the response code and headers.
# Constants
StatusFail if the health check is failing.
StatusPass if the health check is ok.
StatusWarn if the health check has some component warning.
# Variables
ErrBadPattern indicates a pattern was malformed.
# Structs
DefaultTokenFactory default implementation of TokenFactory.
HealthCheck structure to return when health check is called.
HealthDetail structure shows health check in the component level.
Page a meta data for listing that contains pagination structure.
PageRequest define a list query specification in paginated fashion.
ResponseJSON define the structure of all response.
# Interfaces
TokenFactory defines a token factory function to implement.