Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
func NewInMemory ¶
func NewInMemory() *InMemory
type MongoOptions ¶
type MongoOptions struct {
URI string
}
type MongoStore ¶
type MongoStore struct {
// contains filtered or unexported fields
}
func NewMongoStore ¶
func NewMongoStore(opts MongoOptions) *MongoStore
func (*MongoStore) Delete ¶
func (c *MongoStore) Delete(id string) error
Delete implements 09-blog.Container.
func (*MongoStore) GetAll ¶
func (c *MongoStore) GetAll() ([]blog.Post, error)
GetAll implements 09-blog.Container.
func (*MongoStore) Init ¶
func (c *MongoStore) Init() error
type MySQLOptions ¶
type MySQLOptions struct {
URI string
}
type MySQLStore ¶
type MySQLStore struct {
// contains filtered or unexported fields
}
func NewMySQLStore ¶
func NewMySQLStore(opts MySQLOptions) *MySQLStore
func (*MySQLStore) Delete ¶
func (c *MySQLStore) Delete(id string) error
Delete implements 09-blog.Container.
func (*MySQLStore) GetAll ¶
func (c *MySQLStore) GetAll() ([]blog.Post, error)
GetAll implements 09-blog.Container.
func (*MySQLStore) Init ¶
func (c *MySQLStore) Init() error
Click to show internal directories.
Click to hide internal directories.