server

package
v0.0.0-...-ca95c8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var S3PutLimit int = 5*int(math.Pow10(9)) - 1 // 5GB - 1

Functions

func New

func New(o Options) (http.Handler, error)

Types

type Options

type Options struct {
	// required
	Endpoint     string
	NoSSL        bool
	Bucket       string
	S3Accelerate bool

	// minio auth (required)
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string

	// optional
	TTL    time.Duration // defaults to 1 hour
	Prefix string

	IsAuthorized func(string, string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL