package
0.0.0-20250220062548-ee4b441dc5fc
Repository: https://github.com/snowdreamtech/gserver.git
Documentation: pkg.go.dev

# Functions

FileServer returns a handler that serves HTTP requests with the contents of the file system rooted at root.
Negotiate calls different Render according acceptable Accept format.
NegotiateData calls different Render according acceptable Accept format.
NegotiateResponse calls different Render according acceptable Accept format.
NewResponse NewResponse.
ResponseFailure ResponseFailure.
ResponseFailureWithData ResponseFailureWithData.
ResponseSuccess ResponseSuccess.
ResponseSuccessWithData ResponseSuccessWithData.
Static serves files from the given file system root.
StaticFS works just like `Static()` but a custom `FileSystem` can be used instead.

# Constants

EmailAlreadyExists Email Already Exists.
EmailDoesNotExist Email Does Not Exist.
Failure Failure.
InvalidParameter Invalid Parameter.
MobileAlreadyExists Mobile Already Exists.
MobileDoesNotExist Mobile Does Not Exist.
ParamError Param Error.
StatusUnauthorized Status Unauthorized.
Success Success.
TimeFormat is the time format to use when generating times in HTTP headers.
TooManyRequests Too Many Requests.
VerificationCodeError Verification Code Error.
VerificationCodeExpired Verification Code Expired.
VerificationCodeGenerateError Verification Code Generate Error.
VerificationCodeLimit Verification Code Limit.
VerificationCodeRequired Verification Code Required.
VerificationCodeWaiting Verification Code Waiting.
VerificationCodeWaitingAfter Verification Code Waiting After.

# Variables

OFFEREDALL []string{gin.MIMEHTML, gin.MIMEJSON, gin.MIMEXML, gin.MIMEYAML}.
OFFEREDBACKEND []string{gin.MIMEJSON, gin.MIMEXML, gin.MIMEYAML}.
OFFEREDHTML []string{gin.MIMEHTML}.
OFFEREDJSON []string{gin.MIMEJSON}.
OFFEREDXML []string{gin.MIMEXML}.
OFFEREDYAML = []string{gin.MIMEYAML}.

# Structs

Response Response.