Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteHandlers ¶
type DeleteHandlers = HTTPHandlers[common.DeleteParams, *common.DeleteResult]
Common operation types.
type DeleteOperation ¶
type DeleteOperation = HTTPOperation[common.DeleteParams, *common.DeleteResult]
Common operation implementations.
type HTTPHandlers ¶
type HTTPHandlers[RequestType any, ResponseType any] struct { BuildRequest func(context.Context, RequestType) (*http.Request, error) ParseResponse func(context.Context, RequestType, *common.JSONHTTPResponse) (ResponseType, error) ErrorHandler func(*http.Response, []byte) error }
HTTPHandlers contains operation-specific HTTP handlers for building and parsing HTTP requests and responses.
type HTTPOperation ¶
type HTTPOperation[RequestType any, ResponseType any] struct { // contains filtered or unexported fields }
HTTPOperation provides a generic implementation for HTTP-based operations like read, write, delete, etc.
func NewHTTPOperation ¶
func NewHTTPOperation[RequestType any, ResponseType any]( client common.AuthenticatedHTTPClient, handlers HTTPHandlers[RequestType, ResponseType], ) *HTTPOperation[RequestType, ResponseType]
func (*HTTPOperation[RequestType, ResponseType]) ExecuteRequest ¶
func (op *HTTPOperation[RequestType, ResponseType]) ExecuteRequest( ctx context.Context, params RequestType, ) (ResponseType, error)
nolint:ireturn
type ListObjectMetadataHandlers ¶
type ListObjectMetadataHandlers = HTTPHandlers[[]string, *common.ListObjectMetadataResult]
Common operation types.
type ListObjectMetadataOperation ¶
type ListObjectMetadataOperation = HTTPOperation[[]string, *common.ListObjectMetadataResult]
Common operation implementations.
type ReadHandlers ¶
type ReadHandlers = HTTPHandlers[common.ReadParams, *common.ReadResult]
Common operation types.
type ReadOperation ¶
type ReadOperation = HTTPOperation[common.ReadParams, *common.ReadResult]
Common operation implementations.
type WriteHandlers ¶
type WriteHandlers = HTTPHandlers[common.WriteParams, *common.WriteResult]
Common operation types.
type WriteOperation ¶
type WriteOperation = HTTPOperation[common.WriteParams, *common.WriteResult]
Common operation implementations.
Click to show internal directories.
Click to hide internal directories.