Versions in this module Expand all Collapse all v0 v0.5.5 Jul 8, 2023 Changes in this version + var ErrInvalidID = errors.New("ID is not in its proper form") + var ErrInvalidPostCmds = errors.New("PostCmds is not valid") + var ErrInvalidSplitRule = errors.New("SplitRule is not valid") + var ErrNotFound = errors.New("show not found") + type Core struct + func NewCore(log *zap.SugaredLogger, sqlxDB *sqlx.DB) Core + func (c *Core) QueryAllEnabled(ctx context.Context) ([]Show, error) + func (c Core) Create(ctx context.Context, newShow NewShow, now time.Time) (Show, error) + func (c Core) Delete(ctx context.Context, showID string) error + func (c Core) Query(ctx context.Context, pageNumber int, rowsPerPage int) ([]Show, error) + func (c Core) QueryByID(ctx context.Context, showID string) (Show, error) + func (c Core) TotalNum(ctx context.Context) (int64, error) + func (c Core) Update(ctx context.Context, showID string, updateShow UpdateShow, now time.Time) error + type NewShow struct + Enable bool + OutTmpl string + Parser string + Platform string + PostCmds string + RoomID string + SaveDir string + SplitRule string + StreamerName string + type Show = kernel.Show + type UpdateShow struct + Enable *bool + OutTmpl *string + Parser *string + Platform *string + PostCmds *string + RoomID *string + SaveDir *string + SplitRule *string + StreamerName *string