package
0.3.5
Repository: https://github.com/nguyendang2000/shared-go.git
Documentation: pkg.go.dev

# Functions

NewService initializes a new MinIO connection using the given configuration and sets the timeout in the Service struct.

# Constants

30 seconds.
ErrFailedToConnect represents an error when connecting to MinIO fails.
ErrFailedToCopyObject represents an error when copying an object between buckets fails.
ErrFailedToGetObject represents an error when fetching an object from a bucket fails.
ErrFailedToInitializeClient represents an error when the MinIO client initialization fails.
ErrFailedToPutObject represents an error when uploading an object to a bucket fails.
ErrFailedToReadObject represents an error when reading from the fetched object fails.
ErrFailedToRemoveObject represents an error when deleting a single object fails.
ErrFailedToStatObject represents an error when retrieving object metadata fails.

# Structs

Config represents the configuration settings required for connecting to a MinIO server.
Service struct contains the MinIO client and a timeout field.