Documentation ¶
Index ¶
- type File
- type HashOptions
- type HashSet
- type Manifest
- func (z *Manifest) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Manifest) EncodeMsg(en *msgp.Writer) (err error)
- func (z *Manifest) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Manifest) Msgsize() (s int)
- func (z *Manifest) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (m Manifest) Write(w io.Writer) error
- func (m Manifest) WriteToFile(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Size int64 ModTime time.Time Hashes HashSet Seen bool `msg:"-"` // used for hash tracking; don't serialize }
func NewFileFromPath ¶
func NewFileFromPath(path string, opts HashOptions) (*File, error)
func (*File) MarshalMsg ¶
MarshalMsg implements the msgp.Marshaler interface
type HashOptions ¶
type HashSet ¶
func (*HashSet) MarshalMsg ¶
MarshalMsg implements the msgp.Marshaler interface
type Manifest ¶
func ReadFromFile ¶
func (*Manifest) MarshalMsg ¶
MarshalMsg implements the msgp.Marshaler interface
func (*Manifest) UnmarshalMsg ¶
UnmarshalMsg unmarshals a Manifest from MessagePack, returning any extra bytes and any errors encountered
func (Manifest) WriteToFile ¶
Click to show internal directories.
Click to hide internal directories.