net

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CR   = byte('\r')
	LF   = byte('\n')
	CRLF = string([]byte{CR, LF})
)

Functions

func DropCR

func DropCR(data []byte) []byte

func ScanCRLF

func ScanCRLF(data []byte, atEOF bool) (advance int, token []byte, err error)

Types

type Conn

type Conn struct {
	TcpConn net.Conn
	// contains filtered or unexported fields
}

func (*Conn) Read

func (c *Conn) Read() (string, error)

func (*Conn) Write

func (c *Conn) Write(s string) error

type Stat

type Stat struct {
	File     string `json:"file"`
	Size     string `json:"size"`
	Progress string `json:"progress"`
}

type Subj

type Subj struct {
	Sid     int    `json:"sid"`
	Typ     string `json:"type"`
	Name    string `json:"name"`
	Episode string `json:"epi"`
	Status  string `json:"status"`
	Compl   string `json:"compl"`
}

type TorrItem

type TorrItem struct {
	Name       string `json:"name"`
	Size       string `json:"size"`
	UpdateTime string `json:"uptime"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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