cdn

package
v0.0.0-...-6b33518 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: AGPL-3.0-or-later Imports: 12 Imported by: 2

Documentation

Overview

Package cdn simulates a basic CDN server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(dbPath string, coordinatorKey ed25519.PublicKey) (*Server, error)

func (*Server) Close

func (srv *Server) Close() error

func (*Server) NewBucket

func (srv *Server) NewBucket(bucket string, uploader ed25519.PublicKey) error

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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