indexer

package
v0.0.0-...-a55ed3c Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies []string

I store the dependencies as the packages that use this package to facilitate the operations Index, Query and Remove

type PackageManager

type PackageManager struct {
	sync.Mutex // guards the fields below
	// contains filtered or unexported fields
}

func NewPackageManager

func NewPackageManager() *PackageManager

func (*PackageManager) Index

Index index a package and adds its parents to the list Return a response code and an error

func (*PackageManager) Query

Query searches for a package in the indexed list Return a response code and an error

func (*PackageManager) Remove

Remove deletes an indexed package from the list Return a response code and an error

func (*PackageManager) Size

func (m *PackageManager) Size() int

type PackageManagerV2

type PackageManagerV2 struct {
	sync.Mutex // guards the fields below
	// contains filtered or unexported fields
}

func NewPackageManagerV2

func NewPackageManagerV2() *PackageManagerV2

func (*PackageManagerV2) Index

Index index a package and adds its parents to the list Return a response code and an error

func (*PackageManagerV2) Query

Query searches for a package in the indexed list Return a response code and an error

func (*PackageManagerV2) Remove

Remove deletes an indexed package from the list Return a response code and an error

func (*PackageManagerV2) Size

func (m *PackageManagerV2) Size() int

type PackageV2

type PackageV2 struct {
	Name         string
	Dependencies []*PackageV2
	Consumers    []*PackageV2
}

I store the dependencies as the packages that use this package to facilitate the operations Index, Query and Remove

Jump to

Keyboard shortcuts

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