config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasConfig

func HasConfig() bool

func HasToken

func HasToken() bool

func Init

func Init()

func RemoveToken

func RemoveToken() error

func SaveToken

func SaveToken(token 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
}

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