1
0
Fork 0
justguestbook/guestbook/database.go

16 lines
390 B
Go
Raw Normal View History

2022-10-19 03:25:43 +04:00
package guestbook
const DateFormat = "2006-01-02 15:04:05"
type Guestbook interface {
Entries(page, pageSize int64) ([]*Entry, error)
Count() (int64, error)
2022-10-19 03:25:43 +04:00
NewEntry(entry *Entry) error
UpdateEntry(entry *Entry) error
DeleteEntry(entryID int64) (int64, error)
2022-10-19 03:25:43 +04:00
NewReply(reply *Reply) error
UpdateReply(reply *Reply) error
DeleteReply(entryID int64) (int64, error)
2022-10-19 03:25:43 +04:00
Close() error
}