Documentation ¶
Index ¶
Constants ¶
View Source
const DateFormat = "2006-01-02T15:04:05Z07:00"
Variables ¶
View Source
var ErrCreatedAtFieldIsNotString = errors.New("created_at field should be a string")
View Source
var ErrCreatedAtFieldIsRequired = errors.New("created_at field does not exist on the document")
View Source
var ErrIDFieldIsRequired = errors.New("id field does not exist on the document")
View Source
var ErrUidFieldIsNotString = errors.New("uid field should be a string")
View Source
var ErrUidFieldIsRequired = errors.New("uid field does not exist on the document")
View Source
var ErrUpdatedAtFieldIsNotString = errors.New("updated_at field should be a string")
View Source
var ErrUpdatedAtFieldIsRequired = errors.New("updated_at field does not exist on the document")
Functions ¶
This section is empty.
Types ¶
type Typesense ¶
type Typesense struct {
// contains filtered or unexported fields
}
func NewTypesenseClient ¶
func (*Typesense) Index ¶
func (t *Typesense) Index(collection string, document convoy.GenericMap) error
func (*Typesense) Remove ¶
func (t *Typesense) Remove(collection string, f *datastore.SearchFilter) error
func (*Typesense) Search ¶
func (t *Typesense) Search(collection string, f *datastore.SearchFilter) ([]string, datastore.PaginationData, error)
Click to show internal directories.
Click to hide internal directories.