app

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearIndex

func ClearIndex(index algoliasearch.Index) error

ClearIndex will clear the search index

func LoadObjectFile

func LoadObjectFile(file string) ([]algoliasearch.Object, error)

LoadObjectFile loads a JSON file of search terms and returns a slice of algoliasearch.Objects

Types

type Config

type Config struct {
	AlgoliaAPIKey    string `mapstructure:"algolia_api_key"`
	AlgoliaAppID     string `mapstructure:"algolia_app_id"`
	AlgoliaIndexName string `mapstructure:"algolia_index_name"`
	UploadFile       string `mapstructure:"upload_file"`
	Verbose          bool
}

func (*Config) ClearIndex added in v0.0.3

func (c *Config) ClearIndex() error

ClearIndex will clear the search index

func (*Config) GetIndex

func (c *Config) GetIndex() algoliasearch.Index

func (*Config) LoadUploadFile added in v0.0.3

func (c *Config) LoadUploadFile() ([]algoliasearch.Object, error)

LoadUploadFile loads the configured JSON file of search terms and returns a slice of algoliasearch.Objects

func (*Config) UploadIndex added in v0.0.3

func (c *Config) UploadIndex() error

Jump to

Keyboard shortcuts

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