Versions in this module Expand all Collapse all v0 v0.9.1 Dec 2, 2020 Changes in this version + type Iterator struct + func (it *Iterator) Cursor() (string, error) + func (it *Iterator) Next(dst interface{}) error + type MongoDB struct + func NewMongoDB(ctx context.Context, url, database string, opts ...Option) (*MongoDB, error) + func (m *MongoDB) Close() error + func (m *MongoDB) Create(ctx context.Context, kind, id string, entity interface{}) error + func (m *MongoDB) Find(ctx context.Context, kind string, opts datastore.ListOptions) (datastore.Iterator, error) + func (m *MongoDB) Get(ctx context.Context, kind, id string, v interface{}) error + func (m *MongoDB) Put(ctx context.Context, kind, id string, entity interface{}) error + func (m *MongoDB) Update(ctx context.Context, kind, id string, factory datastore.Factory, ...) error + type Option func(*MongoDB) + func WithLogger(logger *zap.Logger) Option