Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrArticleNotFound = errors.New("article not found")
ErrArticleNotFound indicates a 430 response from Usenet
View Source
var ErrHeaderNotFound = errors.New("yenc header not found")
Functions ¶
This section is empty.
Types ¶
type ArticleRespository ¶ added in v0.4.0
type ArticleRespository interface {
FetchBody(messageID string) (io.Reader, error)
Authenticate() error
Close() error
}
ArticleRepository defines the contract for fetching data from Usenet.
type DownloadFile ¶ added in v0.4.0
type DownloadFile struct {
Source *File
Segments []Segment
CleanName string
PartPath string
FinalPath string
Size int64
// contains filtered or unexported fields
}
func NewDownloadFile ¶ added in v0.4.0
func NewDownloadFile(raw File, cleanName, outDir string) *DownloadFile
func (*DownloadFile) GetActualSize ¶ added in v0.4.0
func (f *DownloadFile) GetActualSize() int64
func (*DownloadFile) SetActualSize ¶ added in v0.4.0
func (f *DownloadFile) SetActualSize(size int64)
type YencDecoder ¶ added in v0.4.0
type YencDecoder struct {
PartOffset int64
FileSize int64
// contains filtered or unexported fields
}
func NewYencDecoder ¶ added in v0.4.0
func NewYencDecoder(r io.Reader) *YencDecoder
func (*YencDecoder) DiscardHeader ¶ added in v0.4.0
func (d *YencDecoder) DiscardHeader() error
func (*YencDecoder) Verify ¶ added in v0.4.0
func (d *YencDecoder) Verify() error
Click to show internal directories.
Click to hide internal directories.