Documentation
¶
Overview ¶
Package dali contains implementations of the dali tool
Index ¶
Constants ¶
View Source
const (
HelpCmd string = "help"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
User's configuration (name, timeout, logs)
type DiscoveryMessage ¶
type DiscoveryMessage struct {
Type string // query, announce
Name string // peer name (for announce)
Addr string
TransferPort uint16 // transfer port (for announce)
}
func (*DiscoveryMessage) ToBytes ¶
func (m *DiscoveryMessage) ToBytes() []byte
Serialize DiscoveryMessage to JSON bytes
type Event ¶
type Event [7]string
Timestamp, Type, Result, FilePath, FileSize, SenderName, ReceiverName
type TransferMessage ¶
type TransferMessage struct {
Type string // offer, accept, reject, complete
Sender string // sender name (for offer)
Filename string // file name (for offer)
Size uint64 // file size (for offer)
}
func (*TransferMessage) ToBytes ¶
func (m *TransferMessage) ToBytes() []byte
Serialize TransferMessage to JSON bytes with newline
Click to show internal directories.
Click to hide internal directories.