server

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MultipartMem  = 8 << 20 // 8M
	OwnerTokenLen = 20
	IndexFile     = "public/index.html"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileId

type FileId struct {
	FileId string `json:"fileId" uri:"fileId" binding:"required,printascii,min=3,max=64"`
}

type OwnedFile

type OwnedFile struct {
	FileId
	OwnerToken
}

type OwnerToken

type OwnerToken struct {
	OwnerToken string `form:"ownerToken" binding:"required,printascii,min=3,max=64"`
}

type Server

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

func New

func New(db *database.Database, conf *config.Config) *Server

func (*Server) Start

func (s *Server) Start() error

type StoredFileInfo

type StoredFileInfo struct {
	ExpiryDate time.Time `json:"expiryDate"`
	Count      uint      `json:"count"`
	Error      string    `json:"error"`
}

Jump to

Keyboard shortcuts

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