token

package
v0.0.0-...-80e6674 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFromDisk

func ReadFromDisk() (string, error)

Types

type Config

type Config struct {
	Client HTTPClient
	Out    io.Writer
}

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type Token

type Token struct {
	// contains filtered or unexported fields
}

func New

func New(c *Config) (*Token, error)

func (*Token) Save

func (t *Token) Save() error

func (*Token) Validate

func (t *Token) Validate(token *string) (bool, error)

Jump to

Keyboard shortcuts

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