cmd

package
v0.0.0-...-9428492 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright © 2023 Jean-Baptiste Thomas <jboothomas@gmail.com> This file is part of CLI application pS3.

Copyright © 2023 Jean-Baptiste Thomas <jboothomas@gmail.com> This file is part of CLI application p53.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugPrintln

func DebugPrintln(str ...interface{})

util to output Debug information to stdout

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewHTTPClientWithSettings

func NewHTTPClientWithSettings(httpSettings HTTPClientSettings) (*http.Client, error)

func TracePrintln

func TracePrintln(str ...interface{})

util to output Trace information to stdout

func VerbosePrintln

func VerbosePrintln(str ...interface{})

util to output Debug information to stdout

Types

type HTTPClientSettings

type HTTPClientSettings struct {
	Connect               time.Duration
	ConnKeepAlive         time.Duration
	ExpectContinue        time.Duration
	IdleConn              time.Duration
	MaxAllIdleConns       int
	MaxHostIdleConns      int
	ResponseHeader        time.Duration
	TLSHandshake          time.Duration
	TLSInsecureSkipVerify bool
}

Jump to

Keyboard shortcuts

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