Documentation
¶
Index ¶
- func DecodeBSONFromFile(filePath string, result *Redirects) error
- func EncodeBSONToFile(data *Redirects, filePath string) error
- func GenerateToken(length int) string
- func RedirectGetRoute(w http.ResponseWriter, r *http.Request)
- func RedirectPostRoute(w http.ResponseWriter, r *http.Request)
- func Routes() []router.Route
- type Redirect
- type Redirects
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBSONFromFile ¶
DecodeBSONFromFile reads a BSON file and decodes it into the provided data structure
func EncodeBSONToFile ¶
EncodeBSONToFile encodes a BSON document and writes it to a file
func GenerateToken ¶
func RedirectGetRoute ¶
func RedirectGetRoute(w http.ResponseWriter, r *http.Request)
func RedirectPostRoute ¶
func RedirectPostRoute(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.