cdn

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	ContentRoot string
	Port        string
	AuthToken   string
	BehindProxy bool
}

Server represents a cdn http server

func NewHTTPServer

func NewHTTPServer(contentRoot string, port string, authToken string, behindProxy string) *Server

NewHTTPServer creates a new cdn http server

func (*Server) Serve

func (s *Server) Serve()

Serve will start the cdn service

type UploadUUIDResponse

type UploadUUIDResponse struct {
	FileName string `json:"file_name"`
}

UploadUUIDResponse represents a response for an upload with an auto generated filename

func NewUploadUUIDResponse

func NewUploadUUIDResponse(fileName string) *UploadUUIDResponse

NewUploadUUIDResponse creates a new UploadUUIDResponse instance

Jump to

Keyboard shortcuts

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