search

package
v0.1484.0-MLPAB2599app... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package search provides a client for AWS OpenSearch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg aws.Config, endpoint, indexName string, indexingEnabled bool) (*Client, error)

func (*Client) CountWithQuery added in v0.1057.0

func (c *Client) CountWithQuery(ctx context.Context, req CountWithQueryReq) (int, error)

func (*Client) CreateIndices

func (c *Client) CreateIndices(ctx context.Context) error

func (*Client) Delete added in v0.1423.0

func (c *Client) Delete(ctx context.Context, lpa Lpa) error

func (*Client) Index

func (c *Client) Index(ctx context.Context, lpa Lpa) error

func (*Client) Query

func (c *Client) Query(ctx context.Context, req QueryRequest) (*QueryResponse, error)

type CountWithQueryReq added in v0.1057.0

type CountWithQueryReq struct {
	MustNotExist string
}

type Lpa

type Lpa struct {
	PK    string
	SK    string
	Donor LpaDonor
}

type LpaDonor added in v0.1169.0

type LpaDonor struct {
	FirstNames string
	LastName   string
}

type Pagination

type Pagination struct {
	Total       int
	CurrentPage int
	TotalPages  int
	PageSize    int
}

func (*Pagination) End

func (p *Pagination) End() int

func (*Pagination) HasNext

func (p *Pagination) HasNext() bool

func (*Pagination) HasPrevious

func (p *Pagination) HasPrevious() bool

func (*Pagination) Next

func (p *Pagination) Next() int

func (*Pagination) Pages

func (p *Pagination) Pages() []int

func (*Pagination) Previous

func (p *Pagination) Previous() int

func (*Pagination) Start

func (p *Pagination) Start() int

type QueryRequest

type QueryRequest struct {
	Page     int
	PageSize int
}

type QueryResponse

type QueryResponse struct {
	Pagination *Pagination
	Keys       []dynamo.Keys
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL