util

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentAbsPath added in v1.3.5

func GetCurrentAbsPath() (string, bool)

func GetWorkdir added in v1.3.5

func GetWorkdir() string

func NewHttpProxy added in v1.3.7

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

func NewProxyFromEnv added in v1.3.7

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

func NewSocksProxy added in v1.3.7

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