package
1.0.10
Repository: https://github.com/bigfile/bigfile.git
Documentation: pkg.go.dev

# Functions

AccessLogMiddleware just wrap gin.LoggerWithFormatter.
ConfigContextMiddleware will config context for each request.
DirectoryListHandler is used to list a directory.
FileCreateHandler is used to create file or directory.
FileDeleteHandler is used to delete a file or a directory.
FileReadHandler is used to handle file read request.
FileUpdateHandler is used to handle file update request.
ParseAppMiddleware will parse request context to get an app.
ParseTokenMiddleware is used to parse request context and get a token It's should be put behind RecordRequestMiddleware.
RateLimitByIPMiddleware will record requests number by ip, avoid floor attack.
RecordRequestMiddleware is used to record request in database.
ReplayAttackMiddleware is used to avoid request replay attack.
Routers will define all routers for service.
SignStrWithSecret will calculate the sign of request paramStr that has already been sorted and concat together.
SignWithAppMiddleware will validate request signature of request.
SignWithTokenMiddleware will validate request signature of request.
TokenCreateHandler is used to handle token create http request.
TokenDeleteHandler is used to delete a token.
TokenUpdateHandler is used to handle request for update token.
ValidateRequestSignature will validate the signature of request.

# Variables

ErrInvalidSortTypes represents invalid sort types.
ErrWrongHTTPRange represent wrong http range header.
ErrWrongRangeHeader represent the http range header format error.
GetParamsSignature is used to get the signature of the params.
GetParamsSignBody is used to export getParamsSignBody, sign the params and get the http post body.

# Structs

AppUIDInput represent 'AppUid' request param.
NonceInput represent `nonce` request param.
Response represent http response for client.
TokenInput represent `token` request param.