config

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir added in v0.7.0

func Dir() (string, error)

func HasConfig

func HasConfig() bool

func HasToken

func HasToken() bool

func IndicesDir added in v0.7.0

func IndicesDir() (string, error)

func Init

func Init()

func RemoveToken

func RemoveToken() error

func SaveToken

func SaveToken(token string) error

func SetIndicesDir added in v0.7.0

func SetIndicesDir(dir string) error

func Token

func Token() string

func TokenFromEnv added in v0.2.1

func TokenFromEnv() bool

func ValidToken

func ValidToken(token string) bool

Types

type Config

type Config struct {
	Token      string
	IndicesDir string
}

type Environment

type Environment struct {
	Name string
	API  string
	WEB  string
}

Jump to

Keyboard shortcuts

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