api

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PER_PAGE      = 100
	TIME_INTERVAL = 2
	TIMEOUT       = 1000

	BITBUCKET_ENUMERATE_API_URL = "https://api.bitbucket.org/2.0/repositories"
	GITLAB_ENUMERATE_API_URL    = "https://gitlab.com/api/v4/projects"
	GITEE_ENUMERATE_API_URL     = "https://api.indexea.com/v1/search/widget/wjawvtmm7r5t25ms1u3d"
	CRATES_IO_ENUMERATE_API_URL = "https://crates.io/api/v1/crates"
	PYPI_API_URL                = "https://pypi.org/simple/"

	GITLAB_TOTAL_PAGES = 100000

	BITBUCKET_ENUMERATE_PAGE = 40 //* repo_num = page * 10
	GITLAB_ENUMERATE_PAGE    = 20 //* repo_num = page * 100
	GITEE_ENUMERATE_PAGE     = 20 //* repo_num = page * 100
	CRATES_IO_ENUMERATE_PAGE = 20
)

Variables

This section is empty.

Functions

func FromBitbucket

func FromBitbucket(res *req.Response) (*bitbucket.Response, error)

func FromCargo

func FromCargo(res *req.Response) (*cargo.Response, error)

func FromGitlab

func FromGitlab(res *req.Response) (*gitlab.Response, error)

Types

This section is empty.

Directories

Path Synopsis
* @Author: 7erry * @Date: 2024-12-02 16:34:35 * @LastEditTime: 2024-12-02 17:17:32 * @Description:
* @Author: 7erry * @Date: 2024-12-02 16:34:35 * @LastEditTime: 2024-12-02 17:17:32 * @Description:

Jump to

Keyboard shortcuts

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