Documentation ¶
Index ¶
- func InitDb() (*mongo.Client, func(), error)
- type MongoRepository
- func (r *MongoRepository) ClearAll(c context.Context) error
- func (r *MongoRepository) Create(c context.Context, edge domain.Edge) error
- func (r *MongoRepository) Delete(c context.Context, edge domain.Edge, queryMode bool) error
- func (r *MongoRepository) Get(c context.Context, edge domain.Edge, queryMode bool) ([]domain.Edge, error)
- func (r *MongoRepository) Ping(c context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoRepository ¶
type MongoRepository struct {
// contains filtered or unexported fields
}
func NewMongoRepository ¶
func NewMongoRepository(client *mongo.Client) (*MongoRepository, error)
Click to show internal directories.
Click to hide internal directories.