http

package
v0.0.0-...-fc70b83 Latest Latest
Warning

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

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

Documentation

Overview

Package http @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendUri

func AppendUri(ctx context.Context, remote string, modelPath string) string

AppendUri 拼接URL路径

func GetDomain

func GetDomain(src string) string

GetDomain 获取域名信息 @Param src "https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/"

func GetRemote

func GetRemote(ctx context.Context, remote string, modelPath string) *http.Response

GetRemote 请求http数据

func Pings

func Pings(ctx context.Context, remote string) (res map[string]int)

Pings 验证请求地址是否可用

Types

This section is empty.

Jump to

Keyboard shortcuts

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