gorepo

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

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 7 Imported by: 1 module, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Vardius - gorepo

Build Status Coverage Status

Go repository interface.

ABOUT

Contributors:

Want to contribute ? Feel free to send pull requests!

Have problems, bugs, feature ideas? We are using the github issue tracker to manage them.

License

This package is released under the MIT license. See the complete license in the package:

LICENSE

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewSQL = newRepository

Functions

func Register

func Register(name string, r Repository)

func Repositories

func Repositories() []string

func Unregister

func Unregister(name string)

Types

type Repository

type Repository interface {
	GetAll() (interface{}, error)
	Get(int64) (interface{}, error)
	Save(interface{}) error
	Remove(...int64) (interface{}, error)
}

func Get

func Get(name string) (Repository, error)

Jump to

Keyboard shortcuts

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