backend

package
v0.53.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckSubSupplier

type CheckSubSupplier struct {
	SupplierNames []string `json:"supplier_names" binding:"required"`
}

type MovieInfo

type MovieInfo struct {
	Name                     string   `json:"name"`
	DirRootUrl               string   `json:"dir_root_url"`
	VideoFPath               string   `json:"video_f_path"`
	VideoUrl                 string   `json:"video_url"`
	MediaServerInsideVideoID string   `json:"media_server_inside_video_id"`
	SubFPathList             []string `json:"sub_f_path_list"`
	SubUrlList               []string `json:"sub_url_list"`
}

type MovieInfoV2

type MovieInfoV2 struct {
	Name             string `json:"name"`
	MainRootDirFPath string `json:"main_root_dir_f_path"` // x:\电影
	VideoFPath       string `json:"video_f_path"`         // x:\电影\壮志凌云\壮志凌云.mp4
}

type MovieSubsInfo

type MovieSubsInfo struct {
	SubUrlList   []string `json:"sub_url_list"`
	SubFPathList []string `json:"sub_f_path_list"`
}

type OneVideoInfo

type OneVideoInfo struct {
	Name                     string   `json:"name"`
	VideoFPath               string   `json:"video_f_path"`
	VideoUrl                 string   `json:"video_url"`
	Season                   int      `json:"season"`
	Episode                  int      `json:"episode"`
	SubFPathList             []string `json:"sub_f_path_list"`
	SubUrlList               []string `json:"sub_url_list"`
	MediaServerInsideVideoID string   `json:"media_server_inside_video_id"`
}

type PosterInfo

type PosterInfo struct {
	Url string `json:"url"` // 静态文件服务器中的图片地址
}

type ReplyAllJobs

type ReplyAllJobs struct {
	AllJobs []task_queue.OneJob `json:"all_jobs"`
}

type ReplyCheckAuth

type ReplyCheckAuth struct {
	Message string `json:"message"`
}

type ReplyCheckEmbyPath

type ReplyCheckEmbyPath struct {
	MediaList []string `json:"media_list"`
}

type ReplyCheckPath

type ReplyCheckPath struct {
	Valid bool `json:"valid"`
}

type ReplyCheckStatus

type ReplyCheckStatus struct {
	SubSiteStatus []SiteStatus `json:"sub_site_status"`
}

type ReplyCommon

type ReplyCommon struct {
	Message string `json:"message,omitempty"`
}

type ReplyJobLog

type ReplyJobLog struct {
	OneLine []string `json:"one_line"`
}

type ReplyJobStatus

type ReplyJobStatus struct {
	Status string `json:"status"`
}

type ReplyJobThings

type ReplyJobThings struct {
	JobID     string               `json:"job_id"`
	JobStatus task_queue.JobStatus `json:"job_status"`
	Message   string               `json:"message"`
}

type ReplyLogin

type ReplyLogin struct {
	AccessToken string            `json:"access_token,omitempty"` // 登录成功后返回令牌
	Settings    settings.Settings `json:"settings,omitempty"`     // 登录成功后返回当前的 Setting 信息
	Message     string            `json:"message,omitempty"`
}

type ReplyMainList

type ReplyMainList struct {
	MovieInfos  []MovieInfoV2  `json:"movie_infos_v2"`
	SeasonInfos []SeasonInfoV2 `json:"season_infos_v2"`
}

type ReplyRefreshVideoList

type ReplyRefreshVideoList struct {
	Status     string `json:"status"` // "status": "running","stopped"
	ErrMessage string `json:"err_message"`
}

type ReplyRunningLog

type ReplyRunningLog struct {
	RecentLogs []log_hub.OnceLog `json:"recent_logs"`
}

func NewReplyRunningLog

func NewReplyRunningLog() *ReplyRunningLog

type ReplySystemStatus

type ReplySystemStatus struct {
	IsSetup           bool   `json:"is_setup"`             // 是否进行给初始化设置(引导设置),设置用户名什么的
	Version           string `json:"version"`              // 系统的版本 v0.0.0
	OS                string `json:"os"`                   // 系统的版本
	ARCH              string `json:"arch"`                 // 系统的架构
	IsRunningInDocker bool   `json:"is_running_in_docker"` // 是否在 Docker 中运行
}

type ReplyVideoList

type ReplyVideoList struct {
	MovieInfos  []MovieInfo  `json:"movie_infos"`
	SeasonInfos []SeasonInfo `json:"season_infos"`
}

type ReplyVideoSkipInfo

type ReplyVideoSkipInfo struct {
	IsSkips []bool `json:"is_skips"` // 是否跳过
}

type ReqChangeJobStatus

type ReqChangeJobStatus struct {
	Id           string               `json:"id"`                           // 任务的唯一 ID
	TaskPriority string               `json:"task_priority" default:"high"` // 任务的优先级,high or middle or low priority
	JobStatus    task_queue.JobStatus `json:"job_status"`                   // 任务的状态 允许设置 Waiting(0) or Ignore(5)
}

type ReqChangePwd

type ReqChangePwd struct {
	OrgPwd string `json:"org_pwd" binding:"required,min=6,max=12"`
	NewPwd string `json:"new_pwd" binding:"required,min=6,max=12"`
}

type ReqCheckCron

type ReqCheckCron struct {
	ScanInterval string `json:"scan_interval"  binding:"required"`
}

type ReqCheckEmbyAPI

type ReqCheckEmbyAPI struct {
	AddressUrl string `json:"address_url" binding:"required"`
	APIKey     string `json:"api_key" binding:"required"`
}

type ReqCheckEmbyPath

type ReqCheckEmbyPath struct {
	AddressUrl    string `json:"address_url" binding:"required"`
	APIKey        string `json:"api_key" binding:"required"`
	PathType      string `json:"path_type" binding:"required"`
	CFSMediaPath  string `json:"cfs_media_path" binding:"required"`
	EmbyMediaPath string `json:"emby_media_path" binding:"required"`
}

type ReqCheckPath

type ReqCheckPath struct {
	Path string `json:"path"  binding:"required"`
}

type ReqCheckProxy

type ReqCheckProxy struct {
	ProxySettings settings.ProxySettings `json:"proxy_settings"  binding:"required"`
}

type ReqJobLog

type ReqJobLog struct {
	Id string `json:"id"` // 任务的唯一 ID
}

type ReqJobThings

type ReqJobThings struct {
	JobID string `json:"job_id"`
}

type ReqSetupInfo

type ReqSetupInfo struct {
	Settings settings.Settings `json:"settings" binding:"required"`
}

type ReqVideoListAdd

type ReqVideoListAdd struct {
	VideoType                 int    `json:"video_type"`                    // 0 是 movie or 1 是 series
	PhysicalVideoFileFullPath string `json:"physical_video_file_full_path"` // 视频的物理路径
	TaskPriorityLevel         int    `json:"task_priority_level"`           // 任务优先级
	MediaServerInsideVideoID  string `json:"media_server_inside_video_id"`  // 媒体服务器内部视频ID
	IsBluray                  bool   `json:"is_bluray"`                     // 这个偏向于给外部 API 调用的时候传递使用。是否是蓝光,目前只支持电影的蓝光,连续剧没有调试过
}

type ReqVideoPlayedInfo

type ReqVideoPlayedInfo struct {
	PhysicalVideoFileFullPath string `json:"physical_video_file_full_path"` // 视频的物理路径
	SubName                   string `json:"sub_name"`                      // 字幕的名称,不要传递全路径
}

type ReqVideoSkipInfos added in v0.47.0

type ReqVideoSkipInfos struct {
	VideoSkipInfos []VideoSkipInfo `json:"video_skip_infos"` // 视频跳过信息
}

type SeasonInfo

type SeasonInfo struct {
	Name          string         `json:"name"`
	RootDirPath   string         `json:"root_dir_path"`
	DirRootUrl    string         `json:"dir_root_url"`
	OneVideoInfos []OneVideoInfo `json:"one_video_info"`
}

type SeasonInfoV2

type SeasonInfoV2 struct {
	Name             string `json:"name"`
	MainRootDirFPath string `json:"main_root_dir_f_path"` // x:\连续剧
	RootDirPath      string `json:"root_dir_path"`        // x:\连续剧\绝命毒师
}

type SiteStatus

type SiteStatus struct {
	Name  string `json:"name"`
	Valid bool   `json:"valid"`
	Speed int64  `json:"speed"`
}

type VideoSkipInfo added in v0.47.0

type VideoSkipInfo struct {
	VideoType                 int    `json:"video_type"`                    // 0 是 movie or 1 是 series
	PhysicalVideoFileFullPath string `json:"physical_video_file_full_path"` // 视频的物理路径
	IsBluray                  bool   `json:"is_bluray"`                     // 是否是蓝光,目前只支持电影的蓝光,连续剧没有调试过
	IsSkip                    bool   `json:"is_skip"`                       // 是否跳过
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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