config

package
v0.0.0-...-be54343 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValidKeys   []string
	InvalidKeys []string
)
View Source
var (
	DefaultKey = "API-KEY-DEMO"
)

Functions

func GetApiKey

func GetApiKey() string

func IsApiKeyNull

func IsApiKeyNull(apikey string) bool

func SetApiKeyNull

func SetApiKeyNull(apikey string)

Types

type Config

type Config struct {
	Zoomeye Zoomeye `yaml:"zoomeye"`
}

func NewConfig

func NewConfig() (*Config, error)

type Zoomeye

type Zoomeye struct {
	ApiKey []string `yaml:"api-key"`
}

Jump to

Keyboard shortcuts

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