Versions in this module Expand all Collapse all v0 v0.0.1 Oct 9, 2024 Changes in this version + func StartServer(grpcServer *grpc.Server, cfg *ServerConfig) + type ClientConfig struct + ServerAddress string + type ClientInterface interface + Close func() error + GetFile func(ctx context.Context, filename string, chunkNumber int32) (<-chan Response, error) + func NewClient(cfg *ClientConfig) (ClientInterface, error) + type Response struct + ChunkNumber int32 + ChunkSize int32 + Data []byte + End bool + LastModified time.Time + Name string + Size int64 + TotalChunks int32 + type ServerConfig struct + ChunkSize int64 + Root string