Documentation
¶
Index ¶
Constants ¶
View Source
const ENV_VAR_APP_CREDENTIALS_JSON = "ALGOLIA_APP_CREDENTIALS_JSON"
Variables ¶
This section is empty.
Functions ¶
func NewClientFromJSONAdmin ¶
func NewClientFromJSONAdmin(jsonData []byte) (algoliasearch.Client, error)
func NewClientFromJSONSearchOrAdmin ¶
func NewClientFromJSONSearchOrAdmin(jsonData []byte) (algoliasearch.Client, error)
Types ¶
type Credentials ¶
type Credentials struct { ApplicationId string `json:"applicationId"` SearchOnlyApiKey string `json:"searchOnlyApiKey"` AdminApiKey string `json:"adminApiKey"` AnalyticsApiKey string `json:"analyticsApiKey"` MonitoringApiKey string `json:"monitoringApiKey"` }
func NewCredentials ¶
func NewCredentials(jsonData []byte) (Credentials, error)
Click to show internal directories.
Click to hide internal directories.