morpher

package
v4.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_IP       = "http:ip"
	HTTP_PORT     = "http:port"
	HTTP_REDIRECT = "http:redirect"
)
View Source
const DOC_QUERY_ARG = "docs"
View Source
const USER_AGENT = "PkgRE-Morpher"

Variables

View Source
var (
	UAGit = []byte("git/")            // Git User-Agent
	UAGo  = []byte("Go-http-client/") // Go User-Agent
)

Functions

func Start

func Start(version string) error

Start start HTTP server

Types

type Metrics

type Metrics struct {
	Hits      uint64
	Misses    uint64
	Errors    uint64
	Redirects uint64
	Docs      uint64
	Goget     uint64
}

Metrics is struct with metrics data

type PkgInfo

type PkgInfo struct {
	Path       string
	TargetName string
	RepoInfo   *repo.Info
	RefsInfo   *refs.Info
	TargetType refs.RefType
}

PkgInfo is struct with package info

Jump to

Keyboard shortcuts

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