Documentation ¶
Index ¶
- type Database
- func (b *Database) AddMention(ctx context.Context, mention *core.Mention) error
- func (b *Database) AddTaxonomy(ctx context.Context, taxonomy string, taxons ...string) error
- func (b *Database) Close() error
- func (b *Database) DeleteMention(ctx context.Context, id string) error
- func (b *Database) DeleteTaxonomy(ctx context.Context, taxonomy string, taxons ...string) error
- func (b *Database) GetMention(ctx context.Context, id string) (*core.Mention, error)
- func (b *Database) GetMentions(ctx context.Context) ([]*core.Mention, error)
- func (b *Database) GetTaxonomy(ctx context.Context, taxonomy string) ([]string, error)
- func (b *Database) ResetTaxonomies(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) AddMention ¶
func (*Database) AddTaxonomy ¶
func (*Database) DeleteMention ¶
func (*Database) DeleteTaxonomy ¶
func (*Database) GetMention ¶
func (*Database) GetMentions ¶
func (*Database) GetTaxonomy ¶
Click to show internal directories.
Click to hide internal directories.