archive

package
v0.0.0-...-403b093 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(service Service, front bool)

func Registerf

func Registerf(match MatchFunc, archive ArchiveFunc, front bool)

Types

type ArchiveFunc

type ArchiveFunc func(repo, sha string) (url string, err error)

type MatchFunc

type MatchFunc func(repo string) (ok bool)

type Service

type Service interface {
	Match(repo string) (ok bool)
	Archive(repo, sha string) (url string, err error)
}

func Make

func Make(match MatchFunc, archive ArchiveFunc) Service

func Select

func Select(repo string) (service Service, ok bool)

Jump to

Keyboard shortcuts

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