Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesConfig ¶
type FilesConfig struct { // Skipper defines a function to skip middleware echomiddleware.Skipper // Region The region used to configure the aws client Region string // HeaderXRequestID Name of the request id header to include in callbacks, defaults to echo.HeaderXRequestID HeaderXRequestID string // Enable SPA mode by forwarding all not-found requests to root so that // SPA (single-page application) can handle the routing. SPA bool // Index file for serving a directory in SPA mode. Index string // Summary provides a callback which provide a summary of what was successfully processed by s3 Summary func(ctx context.Context, evt map[string]interface{}) // OnErr is called if there is an issue processing the s3 request OnErr func(ctx context.Context, err error) }
FilesConfig defines the config for the middleware
type FilesStore ¶
type FilesStore struct {
// contains filtered or unexported fields
}
FilesStore manages the s3 client
func (*FilesStore) StaticBucket ¶
func (fs *FilesStore) StaticBucket(s3Bucket string) echo.MiddlewareFunc
StaticBucket new static file server using the supplied s3 bucket
Click to show internal directories.
Click to hide internal directories.