bower

package
v0.0.0-...-452f874 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureApp

func ConfigureApp(config *pkgmirror.Config, l *goapp.Lifecycle)

func ConfigureHttp

func ConfigureHttp(name string, conf *pkgmirror.BowerConfig, app *goapp.App)

Types

type BowerConfig

type BowerConfig struct {
	SourceServer string
	PublicServer string
	Code         []byte
	Path         string
}

type BowerService

type BowerService struct {
	DB     *bolt.DB
	Config *BowerConfig
	Logger *log.Entry

	StateChan     chan pkgmirror.State
	BoltCompacter *pkgmirror.BoltCompacter
	// contains filtered or unexported fields
}

func NewBowerService

func NewBowerService() *BowerService

func (*BowerService) Get

func (bs *BowerService) Get(name string) ([]byte, error)

func (*BowerService) Init

func (bs *BowerService) Init(app *goapp.App) (err error)

func (*BowerService) Serve

func (bs *BowerService) Serve(state *goapp.GoroutineState) error

func (*BowerService) SyncPackages

func (bs *BowerService) SyncPackages() error

func (*BowerService) WriteList

func (bs *BowerService) WriteList(w io.Writer) error

type Package

type Package struct {
	Name      string `json:"name"`
	Url       string `json:"url"`
	SourceUrl string `json:"source_url"`
}

type Packages

type Packages []*Package

Jump to

Keyboard shortcuts

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