Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// DefaultChunkSizeBytes is the default chunk size used for sending and receiving.
DefaultChunkSizeBytes = 65536
)
Functions ¶
Types ¶
type APIClient ¶
type APIClient interface {
Do(ctx context.Context, opts ...grpc.CallOption) (API_DoClient, error)
}
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface {
Do(API_DoServer) error
}
type API_DoClient ¶
type API_DoClient interface { Send(*google_protobuf.BytesValue) error Recv() (*google_protobuf.BytesValue, error) grpc.ClientStream }
type API_DoServer ¶
type API_DoServer interface { Send(*google_protobuf.BytesValue) error Recv() (*google_protobuf.BytesValue, error) grpc.ServerStream }
type Client ¶
type Client interface {
Process(dirPath string, streamingBytesDuplexCloser protostream.StreamingBytesDuplexCloser) error
}
Client calls a remote Processor.
func NewClient ¶
func NewClient(archiver pkgarchive.Archiver, opts ClientOptions) Client
NewClient returns a new Client.
type ClientOptions ¶
type ClientOptions struct {
ChunkSizeBytes int
}
ClientOptions are options to the construction of a Client.
type Processor ¶
Processor processes the contents of a directory.
The result of a call to a Processor is that the directory may have modified contents.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.