notifierhub

package module
v0.0.0-...-d677b1b Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 18 Imported by: 0

README

notiferhub

personal use program

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RedisClient *redis.Client
)

Functions

func CldPOST

func CldPOST(host, action string, params ...string) error

Types

type TorrentTask

type TorrentTask struct {
	Uuid                 string   `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Path                 string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Size                 int64    `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Type                 string   `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Rest                 string   `protobuf:"bytes,5,opt,name=rest,proto3" json:"rest,omitempty"`
	Hash                 string   `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
	StartTS              int64    `protobuf:"varint,7,opt,name=startTS,proto3" json:"startTS,omitempty"`
	FinishTS             int64    `protobuf:"varint,8,opt,name=finishTS,proto3" json:"finishTS,omitempty"`
	Aria2TS              int64    `protobuf:"varint,9,opt,name=aria2TS,proto3" json:"aria2TS,omitempty"`
	ErrorCounter         uint32   `protobuf:"varint,10,opt,name=errorCounter,proto3" json:"errorCounter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewTorrentfromReq

func NewTorrentfromReq(r *http.Request) (*TorrentTask, error)

func (TorrentTask) DLText

func (d TorrentTask) DLText() string

func (TorrentTask) DLURL

func (d TorrentTask) DLURL() []string

func (*TorrentTask) Descriptor

func (*TorrentTask) Descriptor() ([]byte, []int)

func (*TorrentTask) GetAria2TS

func (m *TorrentTask) GetAria2TS() int64

func (*TorrentTask) GetErrorCounter

func (m *TorrentTask) GetErrorCounter() uint32

func (*TorrentTask) GetFinishTS

func (m *TorrentTask) GetFinishTS() int64

func (*TorrentTask) GetHash

func (m *TorrentTask) GetHash() string

func (*TorrentTask) GetPath

func (m *TorrentTask) GetPath() string

func (*TorrentTask) GetRest

func (m *TorrentTask) GetRest() string

func (*TorrentTask) GetSize

func (m *TorrentTask) GetSize() int64

func (*TorrentTask) GetStartTS

func (m *TorrentTask) GetStartTS() int64

func (*TorrentTask) GetType

func (m *TorrentTask) GetType() string

func (*TorrentTask) GetUuid

func (m *TorrentTask) GetUuid() string

func (TorrentTask) IsSetFailed

func (d TorrentTask) IsSetFailed() bool

func (*TorrentTask) ProtoMessage

func (*TorrentTask) ProtoMessage()

func (*TorrentTask) Reset

func (m *TorrentTask) Reset()

func (TorrentTask) SetFailed

func (d TorrentTask) SetFailed()

func (TorrentTask) SinceStart

func (d TorrentTask) SinceStart() time.Duration

func (TorrentTask) StopAndRemove

func (d TorrentTask) StopAndRemove() error

func (*TorrentTask) String

func (m *TorrentTask) String() string

func (*TorrentTask) XXX_DiscardUnknown

func (m *TorrentTask) XXX_DiscardUnknown()

func (*TorrentTask) XXX_Marshal

func (m *TorrentTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TorrentTask) XXX_Merge

func (m *TorrentTask) XXX_Merge(src proto.Message)

func (*TorrentTask) XXX_Size

func (m *TorrentTask) XXX_Size() int

func (*TorrentTask) XXX_Unmarshal

func (m *TorrentTask) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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