Documentation ¶ Index ¶ type Handler func NewHandler(db *database.Database, idEncoder IDEncoder, maxSize int, adminAuth string, ...) *Handler func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) type IDEncoder Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Handler ¶ type Handler struct { // contains filtered or unexported fields } func NewHandler ¶ func NewHandler(db *database.Database, idEncoder IDEncoder, maxSize int, adminAuth string, domains []string, allowFiles, filesBurn bool) *Handler func (*Handler) ServeHTTP ¶ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) type IDEncoder ¶ type IDEncoder interface { Encode(id uint64, longID bool) (phrase string, err error) Decode(phrase string) (id uint64, longID bool, err error) } Source Files ¶ View all Source files content_type.go server.go Click to show internal directories. Click to hide internal directories.