paste-abroad/internel/storage/storage.go

15 lines
226 B
Go
Raw Normal View History

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