live/monitor/base/monitorbase.go
exported type LiveInfo should have comment or be unexported Open
Open
type LiveInfo struct {
- Exclude checks
exported method BaseMonitor.CheckLive should have comment or be unexported Open
Open
func (b *BaseMonitor) CheckLive(usersConfig config.UsersConfig) bool {
- Exclude checks
exported function NoLiving should have comment or be unexported Open
Open
func NoLiving(Provide string, Name string) {
- Exclude checks
struct field HttpHeaders should be HTTPHeaders Open
Open
HttpHeaders map[string]string
- Exclude checks
method HttpGet should be HTTPGet Open
Open
func (c *MonitorCtx) HttpGet(url string, header map[string]string) ([]byte, error) {
- Exclude checks
if block ends with a return statement, so drop this else and outdent its block Open
Open
} else {
- Exclude checks
method HttpPost should be HTTPPost Open
Open
func (c *MonitorCtx) HttpPost(url string, header map[string]string, data []byte) ([]byte, error) {
- Exclude checks
exported method MonitorCtx.GetHeaders should have comment or be unexported Open
Open
func (c *MonitorCtx) GetHeaders() map[string]string {
- Exclude checks
var proxyUrl should be proxyURL Open
Open
proxyUrl, _ := url.Parse("socks5://" + proxy)
- Exclude checks
exported function GetCtx should have comment or be unexported Open
Open
func GetCtx(modName string) *MonitorCtx {
- Exclude checks
exported type MonitorCtx should have comment or be unexported Open
Open
type MonitorCtx struct {
- Exclude checks
type name will be used as base.BaseMonitor by other packages, and that stutters; consider calling this Monitor Open
Open
type BaseMonitor struct {
- Exclude checks
exported method BaseMonitor.DownloadProvider should have comment or be unexported Open
Open
func (b *BaseMonitor) DownloadProvider() string {
- Exclude checks
exported type BaseMonitor should have comment or be unexported Open
Open
type BaseMonitor struct {
- Exclude checks
exported method MonitorCtx.HttpPost should have comment or be unexported Open
Open
func (c *MonitorCtx) HttpPost(url string, header map[string]string, data []byte) ([]byte, error) {
- Exclude checks
exported method MonitorCtx.GetProxy should have comment or be unexported Open
Open
func (c *MonitorCtx) GetProxy() (string, bool) {
- Exclude checks
exported method BaseMonitor.GetCtx should have comment or be unexported Open
Open
func (b *BaseMonitor) GetCtx() *MonitorCtx {
- Exclude checks
comment on exported function GetMod should be of the form "GetMod ..." Open
Open
// get mod config & ctx statically
- Exclude checks
exported method BaseMonitor.CreateVideo should have comment or be unexported Open
Open
func (b *BaseMonitor) CreateVideo(usersConfig config.UsersConfig) *interfaces.VideoInfo {
- Exclude checks
comment on exported function CreateMonitorCtx should be of the form "CreateMonitorCtx ..." Open
Open
// monitorCtx contains mod's extraConfig and its own http client
- Exclude checks
exported type HeadersConfig should have comment or be unexported Open
Open
type HeadersConfig struct {
- Exclude checks
exported type VideoMonitor should have comment or be unexported Open
Open
type VideoMonitor interface {
- Exclude checks