http

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FaaSInfraSuccessCodeSuccess     = "0"
	FaaSInfraFailCodeInternalError  = "k_ec_000001"
	FaaSInfraFailCodeTokenExpire    = "k_ident_013000"
	FaaSInfraFailCodeIllegalToken   = "k_ident_013001"
	FaaSInfraFailCodeMissingToken   = "k_fs_ec_100001"
	FaaSInfraFailCodeRateLimitError = "k_fs_ec_000004"
)
View Source
const (
	FaaSInfraPathMongodb = "/resource/v1/namespaces/:namespace/db"
	FaaSInfraPathRedis   = "/resource/v1/namespaces/:namespace/cache"
	FaaSInfraPathFile    = "/resource/v1/namespaces/:namespace/file"
)

Variables

This section is empty.

Functions

func GetCommonHttpClient

func GetCommonHttpClient() *http.Client

func GetFaaSInfraClient

func GetFaaSInfraClient() *cHttp.HttpClient

func GetFaaSInfraPathFile

func GetFaaSInfraPathFile() string

func GetFaaSInfraPathMongodb

func GetFaaSInfraPathMongodb() string

func GetFaaSInfraPathRedis

func GetFaaSInfraPathRedis() string

func HasError

func HasError(errCode string) bool

func IsSysError

func IsSysError(errCode string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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