Versions in this module Expand all Collapse all v0 v0.1.0 Apr 26, 2023 Changes in this version + func CounterPair(r io.Reader, w io.Writer) (*countingReader, *countingWriter) + type Module struct + ACL []string + Name string + Path string + type Option interface + func WithLogger(logger log.Logger) Option + type Opts struct + D bool + Daemon bool + DryRun bool + Gokrazy struct{ ... } + IgnoreTimes bool + PreserveDevices bool + PreserveGid bool + PreserveLinks bool + PreservePerms bool + PreserveSpecials bool + PreserveTimes bool + PreserveUid bool + Recurse bool + Sender bool + Server bool + func NewGetOpt() (*Opts, *getoptions.GetOpt) + type Server struct + func NewServer(modules []Module, opts ...Option) (*Server, error) + func (s *Server) HandleConn(module Module, rd io.Reader, crd *countingReader, cwr *countingWriter, ...) (err error) + func (s *Server) HandleDaemonConn(ctx context.Context, conn io.ReadWriter, remoteAddr net.Addr) (err error) + func (s *Server) Serve(ctx context.Context, ln net.Listener) error