Documentation
¶
Index ¶
- type Config
- type Index
- type OrganizationIdx
- func (o *OrganizationIdx) Add(ctx context.Context, org *bbl.Organization) error
- func (o *OrganizationIdx) Delete(ctx context.Context, id bbl.ID) error
- func (o *OrganizationIdx) DeleteAll(ctx context.Context) error
- func (o *OrganizationIdx) Reindex(ctx context.Context, all iter.Seq2[*bbl.Organization, error], ...) error
- func (o *OrganizationIdx) Search(ctx context.Context, opts *bbl.SearchOpts) (*bbl.OrganizationHits, error)
- type PersonIdx
- func (p *PersonIdx) Add(ctx context.Context, person *bbl.Person) error
- func (p *PersonIdx) Delete(ctx context.Context, id bbl.ID) error
- func (p *PersonIdx) DeleteAll(ctx context.Context) error
- func (p *PersonIdx) Reindex(ctx context.Context, all iter.Seq2[*bbl.Person, error], ...) error
- func (p *PersonIdx) Search(ctx context.Context, opts *bbl.SearchOpts) (*bbl.PersonHits, error)
- type ProjectIdx
- func (p *ProjectIdx) Add(ctx context.Context, project *bbl.Project) error
- func (p *ProjectIdx) Delete(ctx context.Context, id bbl.ID) error
- func (p *ProjectIdx) DeleteAll(ctx context.Context) error
- func (p *ProjectIdx) Reindex(ctx context.Context, all iter.Seq2[*bbl.Project, error], ...) error
- func (p *ProjectIdx) Search(ctx context.Context, opts *bbl.SearchOpts) (*bbl.ProjectHits, error)
- type WorkIdx
- func (w *WorkIdx) Add(ctx context.Context, work *bbl.Work) error
- func (w *WorkIdx) Delete(ctx context.Context, id bbl.ID) error
- func (w *WorkIdx) DeleteAll(ctx context.Context) error
- func (w *WorkIdx) Reindex(ctx context.Context, all iter.Seq2[*bbl.Work, error], ...) error
- func (w *WorkIdx) Search(ctx context.Context, opts *bbl.SearchOpts) (*bbl.WorkHits, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Client *opensearchapi.Client
OnFail func(ctx context.Context, id string, err error)
}
Config configures the OpenSearch index.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is the OpenSearch implementation of bbl.Index.
func (*Index) Organizations ¶
func (idx *Index) Organizations() bbl.OrganizationIndex
func (*Index) People ¶
func (idx *Index) People() bbl.PersonIndex
func (*Index) Projects ¶
func (idx *Index) Projects() bbl.ProjectIndex
type OrganizationIdx ¶
type OrganizationIdx struct {
// contains filtered or unexported fields
}
OrganizationIdx implements bbl.OrganizationIndex using OpenSearch.
func (*OrganizationIdx) Add ¶
func (o *OrganizationIdx) Add(ctx context.Context, org *bbl.Organization) error
func (*OrganizationIdx) Search ¶
func (o *OrganizationIdx) Search(ctx context.Context, opts *bbl.SearchOpts) (*bbl.OrganizationHits, error)
type PersonIdx ¶
type PersonIdx struct {
// contains filtered or unexported fields
}
PersonIdx implements bbl.PersonIndex using OpenSearch.
func (*PersonIdx) Search ¶
func (p *PersonIdx) Search(ctx context.Context, opts *bbl.SearchOpts) (*bbl.PersonHits, error)
type ProjectIdx ¶
type ProjectIdx struct {
// contains filtered or unexported fields
}
ProjectIdx implements bbl.ProjectIndex using OpenSearch.
func (*ProjectIdx) Search ¶
func (p *ProjectIdx) Search(ctx context.Context, opts *bbl.SearchOpts) (*bbl.ProjectHits, error)
Click to show internal directories.
Click to hide internal directories.