Documentation ¶
Index ¶
- Constants
- Variables
- func CompressedReadWriteCloser(rwc io.ReadWriteCloser) io.ReadWriteCloser
- func NewPerformance() *performance
- func NewStack[T any](inbuffer, outbuffer int) (*stack[T], <-chan T, chan<- T)
- type AtomicAdder
- type Client
- type FileInfo
- func (fi FileInfo) ApplyChanges(fi2 FileInfo) error
- func (fi FileInfo) Chmod(fi2 FileInfo) error
- func (fi *FileInfo) Chown(fi2 FileInfo) error
- func (x *FileInfo) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *FileInfo) CodecEncodeSelf(e *codec1978.Encoder)
- func (fi FileInfo) Create(fi2 FileInfo) error
- func (x *FileInfo) IsCodecEmpty() bool
- func (fi FileInfo) SetTimestamps(fi2 FileInfo) error
- type FileListResponse
- type GetChunkArgs
- type PerformanceCounterType
- type PerformanceEntry
- type PerformanceWrapperReadWriteCloser
- type Server
- func (s *Server) ChecksumChunk(args GetChunkArgs, checksum *uint64) error
- func (s *Server) Close(path string, reply *interface{}) error
- func (s *Server) GetChunk(args GetChunkArgs, data *[]byte) error
- func (s *Server) Hello(options SharedOptions, reply *any) error
- func (s *Server) List(path string, reply *FileListResponse) error
- func (s *Server) Open(path string, reply *interface{}) error
- func (s *Server) Shutdown(input any, reply *any) error
- func (s *Server) Stat(path string, reply *FileInfo) error
- func (s *Server) Wait()
- type SharedOptions
Constants ¶
View Source
const PROTOCOLVERSION = 1
Variables ¶
View Source
var ( ErrNotSupportedByPlatform = errors.New("not supported on this platform") ErrTypeError = errors.New("type error") )
View Source
var ErrPleaseSayHello = errors.New("Client needs to say hello")
View Source
var ErrPleaseSayHelloOnce = errors.New("Client needs to say hello just once")
View Source
var Logger zerolog.Logger
Functions ¶
func CompressedReadWriteCloser ¶
func CompressedReadWriteCloser(rwc io.ReadWriteCloser) io.ReadWriteCloser
func NewPerformance ¶
func NewPerformance() *performance
Types ¶
type AtomicAdder ¶
type AtomicAdder func(uint64)
type Client ¶
type Client struct { BasePath string AlwaysChecksum bool Options SharedOptions Delete bool ParallelFile, ParallelDir, QueueSize int PreserveHardlinks bool BlockSize int Perf *performance // contains filtered or unexported fields }
func (*Client) PostProcessDir ¶
func (c *Client) PostProcessDir(item *dirinfo)
func (*Client) ProcessedItemInDir ¶
type FileInfo ¶
type FileInfo struct { Name string Mode fs.FileMode // Go simplified file type, not for chmod Size int64 IsDir bool Permissions uint32 Xattrs map[string][]byte // xattrs contain ACL !! Owner, Group uint32 Inode, Nlink uint64 Dev, Rdev uint64 LinkTo string Atim syscall.Timespec Mtim syscall.Timespec Ctim syscall.Timespec }
func PathToFileInfo ¶
func (FileInfo) ApplyChanges ¶
func (*FileInfo) CodecDecodeSelf ¶
func (*FileInfo) CodecEncodeSelf ¶
func (*FileInfo) IsCodecEmpty ¶
func (FileInfo) SetTimestamps ¶
type FileListResponse ¶
func (*FileListResponse) CodecDecodeSelf ¶
func (x *FileListResponse) CodecDecodeSelf(d *codec1978.Decoder)
func (*FileListResponse) CodecEncodeSelf ¶
func (x *FileListResponse) CodecEncodeSelf(e *codec1978.Encoder)
func (*FileListResponse) IsCodecEmpty ¶
func (x *FileListResponse) IsCodecEmpty() bool
type GetChunkArgs ¶
func (*GetChunkArgs) CodecDecodeSelf ¶
func (x *GetChunkArgs) CodecDecodeSelf(d *codec1978.Decoder)
func (*GetChunkArgs) CodecEncodeSelf ¶
func (x *GetChunkArgs) CodecEncodeSelf(e *codec1978.Encoder)
func (*GetChunkArgs) IsCodecEmpty ¶
func (x *GetChunkArgs) IsCodecEmpty() bool
type PerformanceCounterType ¶
type PerformanceCounterType int
performance related stuff
const ( SentOverWire PerformanceCounterType = iota RecievedOverWire SentBytes RecievedBytes WrittenBytes ReadBytes BytesProcessed FilesProcessed DirectoriesProcessed EntriesDeleted FileQueue FolderQueue )
type PerformanceEntry ¶
type PerformanceEntry struct {
// contains filtered or unexported fields
}
func (PerformanceEntry) Add ¶
func (pe PerformanceEntry) Add(pe2 PerformanceEntry) PerformanceEntry
func (PerformanceEntry) Get ¶
func (pe PerformanceEntry) Get(pc PerformanceCounterType) uint64
type PerformanceWrapperReadWriteCloser ¶
type PerformanceWrapperReadWriteCloser struct {
// contains filtered or unexported fields
}
func NewPerformanceWrapper ¶
func NewPerformanceWrapper(rwc io.ReadWriteCloser, onRead, onWrite AtomicAdder) *PerformanceWrapperReadWriteCloser
func (*PerformanceWrapperReadWriteCloser) Close ¶
func (pw *PerformanceWrapperReadWriteCloser) Close() error
type Server ¶
type Server struct { BasePath string Options SharedOptions ReadOnly bool Perf *performance // contains filtered or unexported fields }
func (*Server) ChecksumChunk ¶
func (s *Server) ChecksumChunk(args GetChunkArgs, checksum *uint64) error
type SharedOptions ¶
type SharedOptions struct {}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.