Documentation ¶
Index ¶
- func CheckAuthentication(c Configuration, ctx *fasthttp.RequestCtx) bool
- func ConvertUrlToJson(url storage.Url) string
- func CreateUrlHandler(h fasthttp.RequestHandler, s *storage.Storage, c Configuration) fasthttp.RequestHandler
- func GetUrlHandler(h fasthttp.RequestHandler, s *storage.Storage, c Configuration) fasthttp.RequestHandler
- func Handler(ctx *fasthttp.RequestCtx)
- func RedirectHandler(h fasthttp.RequestHandler, s *storage.Storage) fasthttp.RequestHandler
- type Configuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthentication ¶
func CheckAuthentication(c Configuration, ctx *fasthttp.RequestCtx) bool
func ConvertUrlToJson ¶
func CreateUrlHandler ¶
func CreateUrlHandler(h fasthttp.RequestHandler, s *storage.Storage, c Configuration) fasthttp.RequestHandler
func GetUrlHandler ¶
func GetUrlHandler(h fasthttp.RequestHandler, s *storage.Storage, c Configuration) fasthttp.RequestHandler
func Handler ¶
func Handler(ctx *fasthttp.RequestCtx)
func RedirectHandler ¶
func RedirectHandler(h fasthttp.RequestHandler, s *storage.Storage) fasthttp.RequestHandler
Types ¶
type Configuration ¶
type Configuration struct { Authentication bool `json:"authentication"` AuthenticationParameter string `json:"authenticationParameter"` AuthenticationToken string `json:"authenticationToken"` }
func (*Configuration) ParseConfig ¶
func (c *Configuration) ParseConfig()
Click to show internal directories.
Click to hide internal directories.