cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Types

type CodeResponse

type CodeResponse struct {
	Code  string
	State string
	Error error
}

type Config

type Config struct {
	Host  string `json:"host"`
	Token string `json:"token"`
}

type LocalServer

type LocalServer struct {
	ResultChan chan CodeResponse
	// contains filtered or unexported fields
}

type TokenTransport

type TokenTransport struct {
	Token     string
	Transport http.RoundTripper
}

func (*TokenTransport) RoundTrip

func (t *TokenTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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