1
0
justguestbook/internal/guestbook/database.go

13 lines
282 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)
NewEntry(entry *Entry) error
DeleteEntry(entryID int64) error
NewReply(reply *Reply) error
DeleteReply(entryID int64) error
Close() error
}