paste-abroad/internel/storage/storage.go
2023-02-06 15:33:05 +08:00

14 lines
204 B
Go

package storage
type Storage interface {
Save(Paste) (string, error)
Get(string) (*Paste, error)
Purge() (int64, error)
}
type Paste struct {
Content []byte
Expire int64
}