algoliautil

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 6 Imported by: 2

README

Algolia Util

Build Status Go Report Card Docs License

CLI and SDK utilities for Algolia.

Documentation

Index

Constants

View Source
const EnvVarAppCredentialsJSON = "ALGOLIA_APP_CREDENTIALS_JSON" // #nosec G101

Variables

This section is empty.

Functions

func NewClient added in v0.1.0

func NewClient(c Credentials) (*search.Client, error)

func NewClientJSON added in v0.1.0

func NewClientJSON(jsonData []byte) (*search.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)

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

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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