Versions in this module Expand all Collapse all v0 v0.2.3 Aug 15, 2021 v0.2.2 May 3, 2021 v0.2.1 May 2, 2021 v0.2.0 Feb 8, 2021 Changes in this version + func CreateHandler(db *Db, opts appkit.Options) http.Handler + func StartWeb(db *Db, opts appkit.Options) error + type CodeResponseWriter struct + Code int + Len int + func (w *CodeResponseWriter) Write(b []byte) (int, error) + func (w *CodeResponseWriter) WriteHeader(code int) + type Content struct + Date time.Time + Id int + Path string + Text string + type Db struct + MaxVersions int + ReplaceInterval time.Duration + func CreateDb(path string, ctx context.Context) (*Db, error) + func (db *Db) Add(path, content string) error + func (db *Db) Close() error + func (db *Db) Delete(path string) error + func (db *Db) GetContent(path string, numLatest int) ([]Content, error) + func (db *Db) GetPaths() ([]string, error) + type RestApi struct + func (ra *RestApi) ServeHTTP(w http.ResponseWriter, r *http.Request)