Documentation
¶
Index ¶
Constants ¶
View Source
const EnvVarAppCredentialsJSON = "ALGOLIA_APP_CREDENTIALS_JSON" // #nosec G101
Variables ¶
This section is empty.
Functions ¶
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)
func (*Credentials) TrimSpace ¶ added in v0.1.0
func (c *Credentials) TrimSpace()
type GostorClient ¶ added in v0.1.0
type GostorClient struct {
// contains filtered or unexported fields
}
GostorClient is a client that satisfies the grokify/gostor.Client interface.
func NewGostorClient ¶ added in v0.1.0
func NewGostorClient(client *search.Client, indexName string) GostorClient
func (GostorClient) GetString ¶ added in v0.1.0
func (c GostorClient) GetString(key string) (string, error)
func (GostorClient) MustGetString ¶ added in v0.1.0
func (c GostorClient) MustGetString(key string) string
func (GostorClient) SetString ¶ added in v0.1.0
func (c GostorClient) SetString(key, val string) error
Click to show internal directories.
Click to hide internal directories.