Documentation
¶
Index ¶
- func CheckObjectID(hexID string) bool
- func GenerateObjectID() string
- func HandleOptionsRequest(w http.ResponseWriter, r *http.Request)
- func RespondWithError(w http.ResponseWriter, status int, error JWTError)
- func SetResponseHeaders(w http.ResponseWriter, authToken string, apiKey string) http.ResponseWriter
- type JWTError
- type JsonErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckObjectID ¶
CheckObjectID checks whether a hexID is null or now
func GenerateObjectID ¶
func GenerateObjectID() string
GenerateObjectID for index keying records of data
func HandleOptionsRequest ¶
func HandleOptionsRequest(w http.ResponseWriter, r *http.Request)
HandleOptionsRequest handles incoming OPTIONS request
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, status int, error JWTError)
RespondWithError returns JSON Error to Requested is Auth is bad
func SetResponseHeaders ¶
func SetResponseHeaders(w http.ResponseWriter, authToken string, apiKey string) http.ResponseWriter
SetResponseHeaders sets the response headers being sent back to the client
Types ¶
Click to show internal directories.
Click to hide internal directories.