Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSelectedRegionConfig ¶
func GetSelectedRegionConfig() *s3.ConnectionParameters
func LoadDynamicS3ByRegion ¶
func LoadDynamicS3ByRegion() error
Types ¶
type FileUploadServer ¶
type FileUploadServer interface {
ServeHTTP(w http.ResponseWriter, r *http.Request)
}
FileUploadServer interface for the file uploader server
type LocalFileServer ¶
type LocalFileServer struct {
// contains filtered or unexported fields
}
LocalFileServer File server for local
func GetLocalFileServer ¶
func GetLocalFileServer() *LocalFileServer
GetLocalFileServer get new local file server
func (LocalFileServer) ServeHTTP ¶
func (lfs LocalFileServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
type S3FileServer ¶
type S3FileServer struct {
// contains filtered or unexported fields
}
S3FileServer s3 file server definition
func NewS3FileServer ¶
func NewS3FileServer() *S3FileServer
NewS3FileServer create new s3 file server
func (*S3FileServer) ServeHTTP ¶
func (s *S3FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WriteCounter ¶
type WriteCounter struct {
Total int64 // Total # of bytes written
}
WriteCounter counts the number of bytes written to it.
Click to show internal directories.
Click to hide internal directories.