Documentation ¶
Index ¶
Constants ¶
View Source
const ( AlgoliaSyncStatusPending = "pending" AlgoliaSyncStatusFailed = "failed" AlgoliaSyncStatusComplete = "complete" )
Variables ¶
This section is empty.
Functions ¶
func CreateAlgoliaObjectID ¶
CreateAlgoliaObjectID returns a string that represents the algolia object id Uniqueness comes from the item type/item id combination. If a non-empty string is provided as the prefix, it will be added to the begining of the generated id.
Types ¶
type AlgoliaConfig ¶
AlgoliaConfig contains the config information for the Algolia account to use
type AlgoliaObject ¶
type AlgoliaObject struct {
ObjectID string `json:"objectID"`
}
AlgoliaObject an Algolia object
type AlgoliaSync ¶
type AlgoliaSync struct { ID int AlgoliaIndex string AlgoliaObjectID string ItemID int ItemType string Item []byte ItemHash string Status string ForDelete bool CreatedOn string UpdatedOn string }
AlgoliaSync model
func (*AlgoliaSync) MarshalJSON ¶
func (ags *AlgoliaSync) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.