paste-abroad/internel/storage/storage.go

14 lines
204 B
Go
Raw Normal View History

2023-02-06 07:33:05 +00:00
package storage
type Storage interface {
Save(Paste) (string, error)
Get(string) (*Paste, error)
Purge() (int64, error)
}
type Paste struct {
Content []byte
Expire int64
}