server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, port int, meta *database.MetaStore, fs FS, password string, publisher *pubsub.Publisher) error

Types

type FS

type FS interface {
	Exists(ctx context.Context, path string) error
	Put(ctx context.Context, path string, r io.ReadSeeker) error
	PresignedURLForGet(ctx context.Context, path string, dur time.Duration) (string, error)
	PresignedURLForPut(ctx context.Context, path string, dur time.Duration) (string, error)
	CanonicalURL(path string) string
}

Jump to

Keyboard shortcuts

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