cdn

package
v0.0.0-...-e5eed4f Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const FORMAT = "Mon, 2 Jan 2006 15:04:05 GMT"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxSize  int
	TailOnly bool
	ShowInfo bool
	Db       *mgo.Database
}

func (*Config) Get

func (c *Config) Get(w http.ResponseWriter, req *http.Request)

func (*Config) GetIndex

func (c *Config) GetIndex(w http.ResponseWriter, req *http.Request)

func (*Config) GetStat

func (c *Config) GetStat(w http.ResponseWriter, req *http.Request)

func (*Config) Post

func (c *Config) Post(w http.ResponseWriter, req *http.Request)

type Doc

type Doc struct {
	Id       bson.ObjectId `bson:"_id"`
	Filename string        `bson:"filename"`
}

func (Doc) Join

func (d Doc) Join() string

Jump to

Keyboard shortcuts

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