Documentation
¶
Index ¶
- func ApiHandler(w http.ResponseWriter, r *http.Request)
- func Auth(next http.HandlerFunc) http.HandlerFunc
- func ClearCache()
- func CommitHandler(w http.ResponseWriter, r *http.Request)
- func Configure()
- func PingHandler(w http.ResponseWriter, r *http.Request)
- func ValidPort(s string) bool
- type Cache
- type Config
- type EntryItem
- type Item
- type Request
- type Response
- type Session
- type TableItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiHandler ¶ added in v0.2.0
func ApiHandler(w http.ResponseWriter, r *http.Request)
helper function that selects the interface based on the URL path
func Auth ¶
func Auth(next http.HandlerFunc) http.HandlerFunc
basic auth that uses public username/password for check (and if it's needed)
func CommitHandler ¶ added in v0.4.0
func CommitHandler(w http.ResponseWriter, r *http.Request)
write all cache to filesystem
func PingHandler ¶
func PingHandler(w http.ResponseWriter, r *http.Request)
does nothing, only used for health checks
Types ¶
type EntryItem ¶
type EntryItem struct{}
Click to show internal directories.
Click to hide internal directories.