http

package
v0.0.0-...-f55c371 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 7 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 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, remotes []string, modelPath string) *http.Response

GetRemote 请求http数据

func Pings

func Pings(ctx context.Context, remotes []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