Versions in this module Expand all Collapse all v0 v0.2.0 Apr 20, 2026 Changes in this version + func SetAuthMode(c *gin.Context, mode AuthMode) + func SignatureOrAPIKeyAuth(secret string, log *zap.Logger) gin.HandlerFunc + type AuthMode int + const AuthModeAPIKey + const AuthModeSignature + func GetAuthMode(c *gin.Context) AuthMode v0.1.0 Apr 8, 2026 Changes in this version + const DefaultListLimit + const MaxListLimit + const MinListLimit + func APIKeyAuth(secret string, log *zap.Logger) gin.HandlerFunc + func NormalizeListLimit(n int) int + func ParseListLimitQuery(s string) (int, error) + func RegisterRoutes(r *gin.Engine, h *Handler, cfg *config.Config, log *zap.Logger) + func ZapLogger(log *zap.Logger) gin.HandlerFunc + type ErrorResponse struct + Error string + Message string + type Handler struct + Exec executor.Executor + Log *zap.Logger + Version string + func (h *Handler) APIInfo(c *gin.Context) + func (h *Handler) CreateChannel(c *gin.Context) + func (h *Handler) CreatePlaylist(c *gin.Context) + func (h *Handler) CreatePlaylistGroup(c *gin.Context) + func (h *Handler) DeleteChannel(c *gin.Context) + func (h *Handler) DeletePlaylist(c *gin.Context) + func (h *Handler) DeletePlaylistGroup(c *gin.Context) + func (h *Handler) GetChannel(c *gin.Context) + func (h *Handler) GetChannelRegistry(c *gin.Context) + func (h *Handler) GetPlaylist(c *gin.Context) + func (h *Handler) GetPlaylistGroup(c *gin.Context) + func (h *Handler) GetPlaylistItem(c *gin.Context) + func (h *Handler) Health(c *gin.Context) + func (h *Handler) HealthAPI(c *gin.Context) + func (h *Handler) ListChannels(c *gin.Context) + func (h *Handler) ListPlaylistGroups(c *gin.Context) + func (h *Handler) ListPlaylistItems(c *gin.Context) + func (h *Handler) ListPlaylists(c *gin.Context) + func (h *Handler) ReplaceChannel(c *gin.Context) + func (h *Handler) ReplaceChannelRegistry(c *gin.Context) + func (h *Handler) ReplacePlaylist(c *gin.Context) + func (h *Handler) ReplacePlaylistGroup(c *gin.Context) + func (h *Handler) UpdateChannel(c *gin.Context) + func (h *Handler) UpdatePlaylist(c *gin.Context) + func (h *Handler) UpdatePlaylistGroup(c *gin.Context) + type ListResponse struct + Cursor string + HasMore bool + Items []T + func NewListResponse[T any](items []T, nextCursor string) ListResponse[T] + type Server struct + func New(cfg *config.Config, log *zap.Logger, exec executor.Executor, version string) *Server + func (s *Server) ListenAndServe() error + func (s *Server) Shutdown(ctx context.Context) error