lsa

package module
v0.0.0-...-5b99ed7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

README

KNOWN BUGS
- does not detect changes in symlink when size is same

Documentation

Index

Constants

View Source
const (
	TPing byte = iota
	TWrite
	TDelete
	TBig
	TBigFinish
	TBigCancel
)

Variables

This section is empty.

Functions

func UnmarshalLengthy

func UnmarshalLengthy(b io.Reader) (buf []byte, err error)

Types

type Revent

type Revent struct {
	Typ     uint8
	Dir     string
	Name    string
	Stat    *Stat
	Content []byte
}

func UnmarshalRevent

func UnmarshalRevent(b io.Reader) (s *Revent, err error)

func (*Revent) Marshal

func (s *Revent) Marshal(buf *[]byte) (err error)

func (*Revent) String

func (s *Revent) String() string

type Stat

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

func NewStat

func NewStat(fi os.FileInfo) *Stat

func UnmarshalStat

func UnmarshalStat(buf []byte) (s *Stat, err error)

func (*Stat) Diff

func (s *Stat) Diff(o *Stat) bool

func (*Stat) IsDir

func (s *Stat) IsDir() bool
func (s *Stat) IsLink() bool

func (*Stat) Marshal

func (s *Stat) Marshal(buf *[]byte) (err error)

func (*Stat) Mode

func (s *Stat) Mode() os.FileMode

func (*Stat) Mtime

func (s *Stat) Mtime() int64

func (*Stat) Size

func (s *Stat) Size() int64

func (*Stat) String

func (s *Stat) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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