common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructURL

func ConstructURL(base string, qParams map[string]string, paths ...string) (string, error)

func OpenBrowser

func OpenBrowser(url string) error

func Request

func Request(method, url string, body io.Reader, h http.Header) (*http.Response, []byte, error)

func WriteToConfig

func WriteToConfig(conf Config) error

Types

type AuthConfig

type AuthConfig struct {
	AccessToken string    `json:"accessToken"`
	CreatedAt   time.Time `json:"createdAt"`
	ExpiresAt   time.Time `json:"expiresAt"`
}

type Config

type Config = map[string]IssueSummonerConfig

func ReadConfig

func ReadConfig() (Config, error)

type IssueSummonerConfig

type IssueSummonerConfig struct {
	Auth AuthConfig `json:"auth"`
}

type Logger

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

func NewLogger

func NewLogger(debugIndicator bool) *Logger

func (*Logger) Fatal

func (l *Logger) Fatal(message string)

func (*Logger) Hint

func (l *Logger) Hint(message string)

func (*Logger) Info

func (l *Logger) Info(message string)

func (*Logger) Print

func (l *Logger) Print(message string)

func (*Logger) PrintStdout

func (l *Logger) PrintStdout(message string)

func (*Logger) Success

func (l *Logger) Success(message string)

func (*Logger) Warning

func (l *Logger) Warning(message string)

Jump to

Keyboard shortcuts

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