Directories ¶
Path | Synopsis |
---|---|
hooks
Package hooks implements pre- and post snapshot hooks.
|
Package hooks implements pre- and post snapshot hooks. |
logging/trace
package trace provides activity tracing via ctx through Tasks and Spans Basic Concepts Tracing can be used to identify where a piece of code spends its time.
|
package trace provides activity tracing via ctx through Tasks and Spans Basic Concepts Tracing can be used to identify where a piece of code spends its time. |
Package endpoint implements replication endpoints for use with package replication.
|
Package endpoint implements replication endpoints for use with package replication. |
Package replication implements replication of filesystems with existing versions (snapshots) from a sender to a receiver.
|
Package replication implements replication of filesystems with existing versions (snapshots) from a sender to a receiver. |
Package rpc implements zrepl daemon-to-daemon RPC protocol on top of a transport provided by package transport.
|
Package rpc implements zrepl daemon-to-daemon RPC protocol on top of a transport provided by package transport. |
dataconn/heartbeatconn/integration_test_variablereceiverate
This integration test exercises the behavior of heartbeatconn where the server is slow at handling the data received over the connection.
|
This integration test exercises the behavior of heartbeatconn where the server is slow at handling the data received over the connection. |
dataconn/microbenchmark
microbenchmark to manually test rpc/dataconn performance With stdin / stdout on client and server, simulating zfs send|recv piping ./microbenchmark -appmode server | pv -r > /dev/null ./microbenchmark -appmode client -direction recv < /dev/zero Without the overhead of pipes (just protocol performance, mostly useful with perf bc no bw measurement) ./microbenchmark -appmode client -direction recv -devnoopWriter -devnoopReader ./microbenchmark -appmode server -devnoopReader -devnoopWriter
|
microbenchmark to manually test rpc/dataconn performance With stdin / stdout on client and server, simulating zfs send|recv piping ./microbenchmark -appmode server | pv -r > /dev/null ./microbenchmark -appmode client -direction recv < /dev/zero Without the overhead of pipes (just protocol performance, mostly useful with perf bc no bw measurement) ./microbenchmark -appmode client -direction recv -devnoopWriter -devnoopReader ./microbenchmark -appmode server -devnoopReader -devnoopWriter |
dataconn/timeoutconn
package timeoutconn wraps a Wire to provide idle timeouts based on Set{Read,Write}Deadline.
|
package timeoutconn wraps a Wire to provide idle timeouts based on Set{Read,Write}Deadline. |
dataconn/timeoutconn/internal/wireevaluator
a tool to test whether a given transport implements the timeoutconn.Wire interface
|
a tool to test whether a given transport implements the timeoutconn.Wire interface |
grpcclientidentity
Package grpcclientidentity makes the client identity provided by github.com/zrepl/zrepl/daemon/transport/serve.{AuthenticatedListener,AuthConn} available to gRPC service handlers.
|
Package grpcclientidentity makes the client identity provided by github.com/zrepl/zrepl/daemon/transport/serve.{AuthenticatedListener,AuthConn} available to gRPC service handlers. |
grpcclientidentity/example
This package demonstrates how the grpcclientidentity package can be used to set up a gRPC greeter service.
|
This package demonstrates how the grpcclientidentity package can be used to set up a gRPC greeter service. |
grpcclientidentity/grpchelper
Package grpchelper wraps the adaptors implemented by package grpcclientidentity into a less flexible API which, however, ensures that the individual adaptor primitive's expectations are met and hence do not panic.
|
Package grpchelper wraps the adaptors implemented by package grpcclientidentity into a less flexible API which, however, ensures that the individual adaptor primitive's expectations are met and hence do not panic. |
netadaptor
Package netadaptor implements an adaptor from transport.AuthenticatedListener to net.Listener.
|
Package netadaptor implements an adaptor from transport.AuthenticatedListener to net.Listener. |
transportmux
Package transportmux wraps a transport.{Connecter,AuthenticatedListener} to distinguish different connection types based on a label sent from client to server on connection establishment.
|
Package transportmux wraps a transport.{Connecter,AuthenticatedListener} to distinguish different connection types based on a label sent from client to server on connection establishment. |
versionhandshake
Package versionhandshake wraps a transport.{Connecter,AuthenticatedListener} to add an exchange of protocol version information on connection establishment.
|
Package versionhandshake wraps a transport.{Connecter,AuthenticatedListener} to add an exchange of protocol version information on connection establishment. |
Package transport defines a common interface for network connections that have an associated client identity.
|
Package transport defines a common interface for network connections that have an associated client identity. |
fromconfig
Package fromconfig instantiates transports based on zrepl config structures (see package config).
|
Package fromconfig instantiates transports based on zrepl config structures (see package config). |
util
|
|
chainlock
package chainlock implements a mutex whose Lock and Unlock methods return the lock itself, to enable chaining.
|
package chainlock implements a mutex whose Lock and Unlock methods return the lock itself, to enable chaining. |
devnoop
package devnoop provides an io.ReadWriteCloser that never errors and always reports reads / writes to / from buffers as complete.
|
package devnoop provides an io.ReadWriteCloser that never errors and always reports reads / writes to / from buffers as complete. |
zfscmd
Package zfscmd provides a wrapper around packate os/exec.
|
Package zfscmd provides a wrapper around packate os/exec. |
Click to show internal directories.
Click to hide internal directories.