add guestbook
This commit is contained in:
parent
78ae49c2c7
commit
0bd065c2d1
7 changed files with 333 additions and 14 deletions
17
internal/guestbook/handler.go
Normal file
17
internal/guestbook/handler.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package guestbook
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
gemini "github.com/kulak/gemini"
|
||||
)
|
||||
|
||||
// Handler interface for microblog functionality
|
||||
type Handler interface {
|
||||
HandleRequest(w gemini.ResponseWriter, req *gemini.Request)
|
||||
}
|
||||
|
||||
// NewHandler creates a new microblog handler
|
||||
func NewHandler(db *sql.DB) Handler {
|
||||
return NewGuestBook(db)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue