assetserver

package
v0.0.0-...-fc927da Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	account.UserObject
	Name        string `gorm:"index"`
	Md5sum      string `gorm:"index"`
	ContentType string `gorm:"index"`
	Data        []byte
}

type AssetServer

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

This is a thread safe asset server- no state that isn't already thread safe.

func NewAssetServer

func NewAssetServer(pgConnection string) *AssetServer

func (*AssetServer) ServeAsset

func (as *AssetServer) ServeAsset(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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