12 lines
271 B
Go
12 lines
271 B
Go
|
package link
|
||
|
|
||
|
// Repository represent the link repository contract
|
||
|
type Repository interface {
|
||
|
Store(a *Model) error
|
||
|
GetByHash(hash string) (*Model, error)
|
||
|
GetByID(id int64) (*Model, error)
|
||
|
Update(a *Model) error
|
||
|
GetAll() ([]*Model, error)
|
||
|
Delete(id int64) error
|
||
|
}
|