Documentation ¶
Index ¶
- type FileStore
- type MemoryStore
- func (ms *MemoryStore) All(ctx context.Context) (map[string]*Record, error)
- func (ms *MemoryStore) Close(context.Context) error
- func (ms *MemoryStore) Get(ctx context.Context, id string) (*Record, error)
- func (ms *MemoryStore) Open(context.Context) error
- func (ms *MemoryStore) Save(ctx context.Context, r *Record) error
- type MongoStore
- func (ms *MongoStore) All(ctx context.Context) (map[string]*Record, error)
- func (ms *MongoStore) Close(context.Context) error
- func (ms *MongoStore) Get(ctx context.Context, id string) (*Record, error)
- func (ms *MongoStore) Open(context.Context) error
- func (ms *MongoStore) Save(ctx context.Context, r *Record) error
- type Record
- type Records
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStore ¶
type FileStore struct { MemoryStore // contains filtered or unexported fields }
func NewFileStore ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
type MongoStore ¶
type MongoStore struct {
// contains filtered or unexported fields
}
func NewMongoStore ¶
func NewMongoStore(uri, database, collection string) (*MongoStore, error)
Click to show internal directories.
Click to hide internal directories.