pkgmirror

package module
v0.0.0-...-bc0646a Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2016 License: MIT Imports: 9 Imported by: 0

README

Pkg Mirrors

This project aims to provides mirroring features for:

  • composer: the php package manager
  • git: clone mirror and sync repo repository
  • more to come

Please note, if you only need to proxy packagist, please consider Toran Proxy as a strong alternative.

Documentations

User guide
Internals

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SyncInProgressError   = errors.New("A synchronization is already running")
	EmptyKeyError         = errors.New("No value available")
	ResourceNotFoundError = errors.New("Resource not found")
)

Functions

func Compress

func Compress(data []byte) ([]byte, error)

func LoadRemoteStruct

func LoadRemoteStruct(url string, v interface{}) error

func LoadStruct

func LoadStruct(file string, v interface{}) error

func NewWorkerManager

func NewWorkerManager(process int, processCallback FuncProcess) *workerManager

func SendWithHttpCode

func SendWithHttpCode(res http.ResponseWriter, code int, message string)

Types

type Config

type Config struct {
	DataDir        string
	LogDir         string
	CacheDir       string
	PublicServer   string
	InternalServer string
}

type FuncProcess

type FuncProcess func(id int, data <-chan interface{}, result chan interface{})

type FuncResult

type FuncResult func(raw interface{})

type MirrorService

type MirrorService interface {
	Init(app *goapp.App) error
	Serve(state *goapp.GoroutineState) error
	End() error
}

Directories

Path Synopsis
mirror
git
npm

Jump to

Keyboard shortcuts

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