1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00
pasty/internal/storage/driver.go

13 lines
188 B
Go
Raw Normal View History

2020-08-23 01:06:29 +03:00
package storage
import (
2023-06-07 18:46:19 +03:00
"context"
2023-06-07 19:25:28 +03:00
"github.com/lus/pasty/internal/pastes"
2020-08-23 01:06:29 +03:00
)
type Driver interface {
2023-06-07 20:51:54 +03:00
Initialize(ctx context.Context) error
2023-06-07 18:46:19 +03:00
Close() error
2023-06-07 19:25:28 +03:00
Pastes() pastes.Repository
2020-08-26 23:12:36 +03:00
}