manager

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Editable = Editables{
	"tmpl",
	"js",
	"css",
	"md",
}
View Source
var INVITE_URL = "/invite"
View Source
var VISITS = []byte("visits")

Functions

func Bucket

func Bucket(s *store.Store, path string, o cms.Options) http.HandlerFunc

func BucketItem

func BucketItem(s *store.Store, path string, o cms.Options) http.HandlerFunc

func BucketItemUpdate

func BucketItemUpdate(s *store.Store, path string, o cms.Options) http.HandlerFunc

func Bucketer

func Bucketer(store *store.Store, sub *mux.Router, ext string, Options *cms.Options)

func Buckets

func Buckets(s *store.Store, path string, o cms.Options) http.HandlerFunc

func Cancel added in v0.0.5

func Cancel() func(w http.ResponseWriter, r *http.Request)

func Down added in v0.0.5

func Down(server *http.Server) func(w http.ResponseWriter, r *http.Request)

func Editor

func Editor(sub *mux.Router, ext string, Options *cms.Options)

func Env

func Env(key string, def string) string

func FileEdit

func FileEdit(file string, o cms.Options) http.HandlerFunc

func FileUpdate

func FileUpdate(file string, o cms.Options) http.HandlerFunc

func FileUpload

func FileUpload(localPath string, path string, o cms.Options) http.HandlerFunc

func Files

func Files(localPath string, path string, o cms.Options) http.HandlerFunc

func GetTemplate added in v0.0.5

func GetTemplate() *template.Template

func HR

func HR(store *store.Store, sub *mux.Router, ext string, Options *cms.Options)

func Imager

func Imager(sub *mux.Router, ext string, Options *cms.Options)

func Init

func Init()

func IsContains added in v0.0.11

func IsContains(filter string, source string) bool

func PathEdit

func PathEdit(localPath string, webPath string, o cms.Options) http.HandlerFunc

func PathUpdate

func PathUpdate(localPath string, webPath string, o cms.Options) http.HandlerFunc

func Shut added in v0.0.5

func Shut() func(w http.ResponseWriter, r *http.Request)

func SortSize added in v0.0.11

func SortSize(source []FileInfo, Sort string)

func Templater

func Templater(sub *mux.Router, ext string, Options *cms.Options)

func Users

func Users(s *store.Store, path string, o cms.Options) http.HandlerFunc

func Visits added in v0.0.20

func Visits(s *store.Store, path string, o cms.Options) http.HandlerFunc

Types

type Editables

type Editables []string

func (Editables) Is

func (E Editables) Is(ext string) (result bool)

type FileInfo

type FileInfo struct {
	Name    string
	Size    int64
	Created string
}

type ITemplate

type ITemplate interface {
	ExecuteTemplate(wr io.Writer, name string, data interface{}) error
}

type Item

type Item struct {
	Name    string
	Counter int
}

func (Item) ToBytes

func (Item Item) ToBytes() []byte

type Visit added in v0.0.20

type Visit struct {
	URL   string
	Count int
}

Jump to

Keyboard shortcuts

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