util

package
v0.0.0-...-feaeec3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentAbsPath

func GetCurrentAbsPath() (string, bool)

func GetWorkdir

func GetWorkdir() string

func NewHttpProxy

func NewHttpProxy(proxyAddress string) (*http.Transport, error)

func NewProxyFromEnv

func NewProxyFromEnv() (*http.Transport, error)

func NewSocksProxy

func NewSocksProxy(proxyAddress string) (*http.Transport, error)

func SendError

func SendError(c *gin.Context, err error)

Types

type ApiResponse

type ApiResponse struct {
	Error ErrorDescription `json:"error"`
}

type ErrorDescription

type ErrorDescription struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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