Documentation ¶
Index ¶
- Variables
- func LibraryGetEntries(s *server.Server) fiber.Handler
- func PublicMaxedOut(c *fiber.Ctx) error
- func ServeFile(s *server.Server) fiber.Handler
- func SessionHTMLPlayer(s *server.Server) fiber.Handler
- func SessionHTMLPlayerAtIndex(s *server.Server) fiber.Handler
- func SessionIndex(s *server.Server) fiber.Handler
- func SessionNext(s *server.Server) fiber.Handler
- func SessionPrevious(s *server.Server) fiber.Handler
- func SessionReset(s *server.Server) fiber.Handler
- func SessionSetIndex(s *server.Server) fiber.Handler
- func SessionTotal(s *server.Server) fiber.Handler
- func SetDebounceFlag(db *redis.Client, ctx context.Context, key string, ttl time.Duration) bool
- func SetupAdminRoutes(s *server.Server)
- func SetupPublicRoutes(s *server.Server)
- func UpdatePosition(s *server.Server) fiber.Handler
- func YouTubeAddPlaylist(s *server.Server) fiber.Handler
- func YouTubeSessionHTMLPlayer(s *server.Server) fiber.Handler
- type YouTubePlaylist
Constants ¶
This section is empty.
Variables ¶
View Source
var PublicLimter = rate_limiter.New(rate_limiter.Config{ Max: 3, Expiration: 1 * time.Second, KeyGenerator: func(c *fiber.Ctx) string { return c.Get("x-forwarded-for") }, LimitReached: PublicMaxedOut, LimiterMiddleware: rate_limiter.SlidingWindow{}, })
View Source
var UUIDFileLimter = rate_limiter.New(rate_limiter.Config{ Max: 10, Expiration: 1 * time.Second, KeyGenerator: func(c *fiber.Ctx) string { return c.Get("x-forwarded-for") }, LimitReached: PublicMaxedOut, LimiterMiddleware: rate_limiter.SlidingWindow{}, })
Functions ¶
func PublicMaxedOut ¶
func ServeFile ¶
https://github.com/gofiber/fiber/blob/0592e01382d2dd011980b7687023957f63025f7b/ctx.go#L74 https://github.com/gofiber/fiber/blob/v2/ctx.go#L1732
func SetDebounceFlag ¶
func SetupAdminRoutes ¶
func SetupPublicRoutes ¶
Types ¶
type YouTubePlaylist ¶
type YouTubePlaylist struct { Name string `json:"name"` Items []*youtube.PlaylistItem `json:"items"` }
func YouTubeGetVideosInPlaylist ¶
func YouTubeGetVideosInPlaylist(api_key string, playlist_id string) (result YouTubePlaylist)
Click to show internal directories.
Click to hide internal directories.