Esempio n. 1
0
// FromEnv creates a new Client
// The environment variables `ALGOLIA_APP_ID` and `ALGOLIA_API_KEY` are used.
// If useMock is true the client is a fake algolia implementation.
func FromEnv(useMock ...bool) Client {
	return New(env.MustGet("ALGOLIA_APP_ID"), env.MustGet("ALGOLIA_API_KEY"), useMock...)
}
Esempio n. 2
0
func FromEnv() *Client {
	return New(env.MustGet("KEEN_PROJECT_ID"), env.MustGet("KEEN_API_KEY"))
}
Esempio n. 3
0
func FromEnv() Client {
	return New(env.MustGet("ALGOLIA_APP_ID"), env.MustGet("ALGOLIA_API_KEY"))
}