config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL = "https://api.replicate.com/v1/"
)

Variables

View Source
var ConfigFilePath string

Functions

func GetAPIBaseURL

func GetAPIBaseURL() string

func GetAPIToken

func GetAPIToken() (string, error)

func GetAPITokenForHost

func GetAPITokenForHost(host string) (string, error)

func SetAPIToken

func SetAPIToken(apiToken string) error

func SetAPITokenForHost

func SetAPITokenForHost(apiToken, host string) error

Types

type Host

type Host struct {
	Token string `yaml:"token"`
}

Jump to

Keyboard shortcuts

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