Documentation
¶
Index ¶
- type Config
- type MongoDBDataStore
- func (ds *MongoDBDataStore) Close() error
- func (ds *MongoDBDataStore) Commit(p *Post) (string, error)
- func (ds *MongoDBDataStore) Fetch(id string) (*Post, error)
- func (ds *MongoDBDataStore) FetchTimeline(count int) ([]*Post, error)
- func (ds *MongoDBDataStore) Filter(filter bson.D, count int) ([]*Post, error)
- func (ds *MongoDBDataStore) GetRev() (string, error)
- func (ds *MongoDBDataStore) Init() error
- func (ds *MongoDBDataStore) Remove(id string) error
- type Post
- type Starliner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DataStoreType string URL string Listen string Provider string UserIDs []string }
Config ...
type MongoDBDataStore ¶
type MongoDBDataStore struct {
// contains filtered or unexported fields
}
MongoDBDataStore ...
func NewMongoDBDataStore ¶
func NewMongoDBDataStore(url string) (*MongoDBDataStore, error)
NewMongoDBDataStore ...
func (*MongoDBDataStore) Commit ¶
func (ds *MongoDBDataStore) Commit(p *Post) (string, error)
Commit ...
func (*MongoDBDataStore) Fetch ¶
func (ds *MongoDBDataStore) Fetch(id string) (*Post, error)
Fetch ...
func (*MongoDBDataStore) FetchTimeline ¶
func (ds *MongoDBDataStore) FetchTimeline(count int) ([]*Post, error)
FetchTimeline ...
type Post ¶
type Post struct { ID string `bson:"ID"` Author string `bson:"Author"` Tags []string `bson:"Tags"` Body string `bson:"Body"` }
Post ...
Click to show internal directories.
Click to hide internal directories.