Documentation ¶
Index ¶
- func NewChunkServer(logger *slog.Logger, fsys, cacheFS writablefs.FS) (string, http.Handler)
- func NewServer(logger *slog.Logger, fsys, cacheFS writablefs.FS) (string, http.Handler)
- type ChunkServer
- type Client
- type ClientOptions
- type Server
- func (s *Server) Abort(ctx context.Context, req *connect.Request[wrapperspb.StringValue]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) Complete(ctx context.Context, req *connect.Request[wrapperspb.StringValue]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) New(ctx context.Context, req *connect.Request[v1alpha1.NewRequest]) (*connect.Response[wrapperspb.StringValue], error)
- func (s *Server) PollForCompletion(ctx context.Context, req *connect.Request[wrapperspb.StringValue]) (*connect.Response[v1alpha1.CompleteResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChunkServer ¶
Types ¶
type ChunkServer ¶
type ClientOptions ¶
type ClientOptions struct { // NumConnections is the number of concurrent connections to use when uploading chunks. NumConnections int // ChunkSizeBytes is the size of each chunk. ChunkSizeBytes int64 // MaxRetryAttempts is the maximum number of retry attempts to make before giving up. MaxRetryAttempts int // TLSClientConfig is the optional TLS configuration to use when making requests. TLSClientConfig *tls.Config }
ClientOptions are options for configuring the behavior of the upload client.
type Server ¶
func (*Server) New ¶
func (s *Server) New(ctx context.Context, req *connect.Request[v1alpha1.NewRequest]) (*connect.Response[wrapperspb.StringValue], error)
func (*Server) PollForCompletion ¶
func (s *Server) PollForCompletion(ctx context.Context, req *connect.Request[wrapperspb.StringValue]) (*connect.Response[v1alpha1.CompleteResponse], error)
Click to show internal directories.
Click to hide internal directories.