recommendation

package
v3.31.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client deprecated

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

Deprecated: use personalization.Client instead Client provides methods to interact with the Algolia Recommendation API.

func NewClient deprecated

func NewClient(appID, apiKey string, region region.Region) *Client

Deprecated: use personalization.NewClient() instead NewClient instantiates a new client able to interact with the Algolia Recommendation API.

func NewClientWithConfig deprecated

func NewClientWithConfig(config Configuration) *Client

Deprecated: use personalization.NewClientWithConfig() instead NewClientWithConfig instantiates a new client able to interact with the Recommendation API.

func (*Client) GetPersonalizationStrategy

func (c *Client) GetPersonalizationStrategy(opts ...interface{}) (strategy Strategy, err error)

func (*Client) SetPersonalizationStrategy

func (c *Client) SetPersonalizationStrategy(strategy Strategy, opts ...interface{}) (res SetPersonalizationStrategyRes, err error)

type Configuration deprecated

type Configuration struct {
	AppID          string
	APIKey         string
	Hosts          []string
	Requester      transport.Requester
	ReadTimeout    time.Duration
	WriteTimeout   time.Duration
	Region         region.Region
	Headers        map[string]string
	ExtraUserAgent string
}

Deprecated: use personalization.Configuration instead

type EventsScoring

type EventsScoring struct {
	EventName string `json:"eventName"`
	EventType string `json:"eventType"`
	Score     int    `json:"score"`
}

type FacetsScoring

type FacetsScoring struct {
	FacetName string `json:"facetName"`
	Score     int    `json:"score"`
}

type SetPersonalizationStrategyRes

type SetPersonalizationStrategyRes struct {
	Status  int    `json:"status"`
	Message string `json:"message"`
}

type Strategy

type Strategy struct {
	EventsScoring         []EventsScoring                  `json:"eventsScoring"`
	FacetsScoring         []FacetsScoring                  `json:"facetsScoring"`
	PersonalizationImpact *opt.PersonalizationImpactOption `json:"personalizationImpact"`
}

Jump to

Keyboard shortcuts

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