Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DuplicateVoteError ¶ added in v0.1.6
func (*DuplicateVoteError) Error ¶ added in v0.1.6
func (e *DuplicateVoteError) Error() string
type InMemoryPersistence ¶ added in v0.1.6
func NewInMemoryPersistence ¶ added in v0.1.6
func NewInMemoryPersistence() InMemoryPersistence
func (InMemoryPersistence) GetAll ¶ added in v0.1.6
func (p InMemoryPersistence) GetAll() []Idea
func (InMemoryPersistence) StoreIdea ¶ added in v0.1.6
func (p InMemoryPersistence) StoreIdea(idea Idea) error
type MongoDBPersistence ¶ added in v0.1.6
type MongoDBPersistence struct {
// contains filtered or unexported fields
}
func NewMongoDBPersistence ¶ added in v0.1.6
func NewMongoDBPersistence(connectionstring string) (MongoDBPersistence, error)
func (*MongoDBPersistence) Close ¶ added in v0.1.6
func (m *MongoDBPersistence) Close()
func (*MongoDBPersistence) GetAll ¶ added in v0.1.6
func (m *MongoDBPersistence) GetAll() ([]Idea, error)
func (*MongoDBPersistence) StoreIdea ¶ added in v0.1.6
func (m *MongoDBPersistence) StoreIdea(idea Idea) error
type PersistenceError ¶ added in v0.1.6
func (*PersistenceError) Error ¶ added in v0.1.6
func (e *PersistenceError) Error() string
Click to show internal directories.
Click to hide internal directories.