Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
A Repository maintains a mapping between types and values.
func (*Repository) Get ¶
func (r *Repository) Get(modelType interface{}) (interface{}, error)
Get returns the repository associated with the type of the provided model returns an error if we can't find one.
func (*Repository) Register ¶
func (r *Repository) Register(modelType, repo interface{})
Register associates the repo object with the type of modelType.
Click to show internal directories.
Click to hide internal directories.