series

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEntryProgress = errors.New("entry progress does not exist")

Functions

func DeleteEntryCover

func DeleteEntryCover(s *server.Server) gin.HandlerFunc

func DeleteSeriesCover

func DeleteSeriesCover(s *server.Server) gin.HandlerFunc

func GetEntries

func GetEntries(s *server.Server) gin.HandlerFunc

func GetEntry

func GetEntry(s *server.Server) gin.HandlerFunc

func GetEntryArchive

func GetEntryArchive(s *server.Server) gin.HandlerFunc

func GetEntryCover

func GetEntryCover(s *server.Server) gin.HandlerFunc

func GetEntryPage

func GetEntryPage(s *server.Server) gin.HandlerFunc

func GetEntryProgress

func GetEntryProgress(s *server.Server) gin.HandlerFunc

func GetEntryProgressInternal

func GetEntryProgressInternal(uid, sid, eid string, s *server.Server) (users.EntryProgress, users.SeriesProgress, users.CatalogProgress, error)

func GetSeries

func GetSeries(s *server.Server) gin.HandlerFunc

func GetSeriesCover

func GetSeriesCover(s *server.Server) gin.HandlerFunc

func GetSeriesProgress

func GetSeriesProgress(s *server.Server) gin.HandlerFunc

func GetSeriesProgressInternal

func GetSeriesProgressInternal(uid, sid string, s *server.Server) (users.SeriesProgress, users.CatalogProgress, error)

func NewService

func NewService(g *server.RouterGroup)

func PatchEntry

func PatchEntry(s *server.Server) gin.HandlerFunc

func PatchEntryCover

func PatchEntryCover(s *server.Server) gin.HandlerFunc

func PatchEntryProgress

func PatchEntryProgress(s *server.Server) gin.HandlerFunc

func PatchSeries

func PatchSeries(s *server.Server) gin.HandlerFunc

func PatchSeriesCover

func PatchSeriesCover(s *server.Server) gin.HandlerFunc

func PatchSeriesProgress

func PatchSeriesProgress(s *server.Server) gin.HandlerFunc

func PatchSeriesTags

func PatchSeriesTags(s *server.Server) gin.HandlerFunc

Types

type EntriesProgressReply

type EntriesProgressReply struct {
	Success  bool                `json:"success"`
	Progress users.EntryProgress `json:"progress"`
}

EntriesProgressReply for /api/series/:sid/entries/:eid/progress

type EntryProgressRequest

type EntryProgressRequest struct {
	Progress string `json:"progress"`
}

EntryProgressRequest for /api/series/:sid/entries/:eid/progress

type PatchCoverReply

type PatchCoverReply struct {
	Success bool `json:"success"`
}

PatchCoverReply for /api/series/:sid/cover

type SeriesEntriesReply

type SeriesEntriesReply struct {
	Success bool        `json:"success"`
	List    api.Entries `json:"list"`
}

SeriesEntriesReply for /api/series/:id/entries

type SeriesEntryReply

type SeriesEntryReply struct {
	Success bool      `json:"success"`
	Data    api.Entry `json:"data"`
}

SeriesEntryReply for /api/series/:id/entries/:eid

type SeriesProgressReply

type SeriesProgressReply struct {
	Success  bool                           `json:"success"`
	Progress map[string]users.EntryProgress `json:"progress"`
}

SeriesProgressReply for /api/series/:sid/progress

type SeriesProgressRequest

type SeriesProgressRequest struct {
	Progress string `json:"progress"`
}

SeriesProgressRequest for /api/series/:sid/progress

type SeriesReply

type SeriesReply struct {
	Success bool       `json:"success"`
	Data    api.Series `json:"data"`
}

SeriesReply for /api/series/:sid

type TagsReply

type TagsReply struct {
	Success bool `json:"success"`
}

TagsReply for the route /api/tag/:id/series

type TagsRequest

type TagsRequest struct {
	Tags []string `json:"tags"`
}

TagsRequest for the route /api/tag/:id/series

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL