package
0.0.0-20241027210334-41bbf5e38139
Repository: https://github.com/axmdv/go-url-shortener.git
Documentation: pkg.go.dev
# Functions
CreateIDToCookie returns id of a current user, and cookieValue - concatenation of user ID and signature.
GetIDFromCookie returns user UUID from value of http.Cookie that is sent by a client.
GetUUIDFromContext returns user UUID from Context.
SetUUIDToRequestContext returns http.Request with id value in request context.
ValidateCookie returns true if Cokie is valid.