tracker

package
v0.0.0-...-b45fbc0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRLF = "\x0D\x0A"
)
View Source
const TRACKER_MANAGER_ID = "TrackerManager"

Variables

This section is empty.

Functions

This section is empty.

Types

type TicBuilder

type TicBuilder struct {
	// contains filtered or unexported fields
}

func NewTicBuilder

func NewTicBuilder() *TicBuilder

func (*TicBuilder) AddPath

func (self *TicBuilder) AddPath(path string)

func (*TicBuilder) AddSeenby

func (self *TicBuilder) AddSeenby(addr string)

func (TicBuilder) Build

func (self TicBuilder) Build() string

func (*TicBuilder) SetArea

func (self *TicBuilder) SetArea(areaName string)

func (*TicBuilder) SetCrc

func (self *TicBuilder) SetCrc(crc string)

func (*TicBuilder) SetDate

func (self *TicBuilder) SetDate(time time.Time)

func (*TicBuilder) SetDesc

func (self *TicBuilder) SetDesc(desc string)

func (*TicBuilder) SetFile

func (self *TicBuilder) SetFile(filename string)

func (*TicBuilder) SetFrom

func (self *TicBuilder) SetFrom(from string)

func (*TicBuilder) SetLDesc

func (self *TicBuilder) SetLDesc(ldesc string)

/ SetLDesc add long description

func (*TicBuilder) SetOrigin

func (self *TicBuilder) SetOrigin(origin string)

func (*TicBuilder) SetPw

func (self *TicBuilder) SetPw(passwd string)

func (*TicBuilder) SetSize

func (self *TicBuilder) SetSize(size int64)

func (*TicBuilder) SetTo

func (self *TicBuilder) SetTo(to string)

type TicFile

type TicFile struct {
	// contains filtered or unexported fields
}

func NewTicFile

func NewTicFile() *TicFile

func (*TicFile) GetArea

func (self *TicFile) GetArea() string

func (*TicFile) GetDesc

func (self *TicFile) GetDesc() string

func (*TicFile) GetFile

func (self *TicFile) GetFile() string

func (*TicFile) GetLFile

func (self *TicFile) GetLFile() string

func (*TicFile) GetUnixTime

func (self *TicFile) GetUnixTime() int64

func (*TicFile) SetArea

func (self *TicFile) SetArea(area string)

func (*TicFile) SetDesc

func (self *TicFile) SetDesc(desc string)

func (*TicFile) SetFile

func (self *TicFile) SetFile(file string)

func (*TicFile) SetLFile

func (self *TicFile) SetLFile(value string)

func (*TicFile) SetPw

func (self *TicFile) SetPw(pw string)

func (*TicFile) SetUnixTime

func (self *TicFile) SetUnixTime(unixTime int64)

type TicParser

type TicParser struct {
	// contains filtered or unexported fields
}

func NewTicParser

func NewTicParser(r *registry.Container) *TicParser

func (*TicParser) Parse

func (self *TicParser) Parse(stream io.Reader) (*TicFile, error)

func (TicParser) ParseFile

func (self TicParser) ParseFile(filename string) (*TicFile, error)

type TicParserHandler

type TicParserHandler func(string)

type Tracker

type Tracker struct {
	registry.Service
}

func NewTracker

func NewTracker(r *registry.Container) *Tracker

func (*Tracker) ProcessInbound

func (self *Tracker) ProcessInbound() error

func (*Tracker) ProcessOutbound

func (self *Tracker) ProcessOutbound() error

func (Tracker) Track

func (self Tracker) Track()

type TrackerManager

type TrackerManager struct {
	// contains filtered or unexported fields
}

func NewTrackerManager

func NewTrackerManager(r *registry.Container) *TrackerManager

func RestoreTrackerManager

func RestoreTrackerManager(r *registry.Container) *TrackerManager

func (*TrackerManager) HandleEvent

func (self *TrackerManager) HandleEvent(event string)

func (TrackerManager) Start

func (self TrackerManager) Start()

Jump to

Keyboard shortcuts

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