mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-28 15:17:26 +02:00
* Inital routes to git refs api * Git refs API implementation * Update swagger * Fix copyright * Make swagger happy add basic test * Fix test * Fix test again :)
16 lines
409 B
Go
16 lines
409 B
Go
package storer
|
|
|
|
// Storer is a basic storer for encoded objects and references.
|
|
type Storer interface {
|
|
EncodedObjectStorer
|
|
ReferenceStorer
|
|
}
|
|
|
|
// Initializer should be implemented by storers that require to perform any
|
|
// operation when creating a new repository (i.e. git init).
|
|
type Initializer interface {
|
|
// Init performs initialization of the storer and returns the error, if
|
|
// any.
|
|
Init() error
|
|
}
|