Add docs to timeline package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2019-03-23 20:45:58 +01:00
parent 42431954e2
commit 3d4c4744fe
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -1,10 +1,16 @@
// Package timeline contains different types of timeline backends.
//
// "sorted-set" uses Redis sorted sets as a backend
// "stream" uses Redis 5 streams as a backend
// "null" doesn't remember any items added to it
package timeline
import (
"encoding/json"
"github.com/gomodule/redigo/redis"
"p83.nl/go/ekster/pkg/microsub"
"github.com/gomodule/redigo/redis"
)
// Backend specifies the interface for Timeline. It supports everything that is needed