admin

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetStatsResp

type GetStatsResp struct {
	VodCount     int `json:"vod_count"`
	ChannelCount int `json:"channel_count"`
}

type InfoResp added in v1.1.0

type InfoResp struct {
	Version         string `json:"version"`
	BuildTime       string `json:"build_time"`
	GitHash         string `json:"git_hash"`
	Uptime          string `json:"uptime"`
	ProgramVersions `json:"program_versions"`
}

type ProgramVersions added in v1.1.0

type ProgramVersions struct {
	FFmpeg           string `json:"ffmpeg"`
	TwitchDownloader string `json:"twitch_downloader"`
	ChatDownloader   string `json:"chat_downloader"`
	Streamlink       string `json:"streamlink"`
}

type Service

type Service struct {
	Store *database.Database
}

func NewService

func NewService(store *database.Database) *Service

func (*Service) GetInfo added in v1.1.0

func (s *Service) GetInfo(c echo.Context) (InfoResp, error)

func (*Service) GetStats

func (s *Service) GetStats(c echo.Context) (GetStatsResp, error)

Jump to

Keyboard shortcuts

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