auth

package
v0.0.0-...-05c4626 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_CREDS_FILE = ".kalctl/auth.json"
View Source
const DEFAULT_TOKEN_FILE = ".kalctl/token.json"
View Source
const KALSHI_AUTH_PATH = "trade-api/v2/login"

Variables

This section is empty.

Functions

func GetToken

func GetToken() (reqs.Token, error)

func RunKalshiAuth

func RunKalshiAuth(permAuth bool) error

func WriteToken

func WriteToken(token reqs.Token) error

func WriteUserCredentials

func WriteUserCredentials(creds Creds) error

Types

type Creds

type Creds struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

func ImportUserCredentials

func ImportUserCredentials() (Creds, error)

func ReadUserCredentials

func ReadUserCredentials() (Creds, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳