mongo

package
v0.0.0-...-2694401 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoModuleStore

type MongoModuleStore struct {
	// contains filtered or unexported fields
}

func NewMongoStorage

func NewMongoStorage(url string) *MongoModuleStore

NewMongoStorage returns an unconnected Mongo Module Storage that satisfies the Storage interface. You must call Connect() on the returned store before using it.

func (*MongoModuleStore) Connect

func (m *MongoModuleStore) Connect() error

func (*MongoModuleStore) Get

func (s *MongoModuleStore) Get(baseURL, module, vsn string) (*storage.Version, error)

func (*MongoModuleStore) List

func (s *MongoModuleStore) List(baseURL, module string) ([]string, error)

func (*MongoModuleStore) Save

func (s *MongoModuleStore) Save(baseURL, module, version string, mod, zip []byte) error

Jump to

Keyboard shortcuts

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