Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Addr is the server's binding address.
Addr string
// Port is the server's binding port.
Port int
// DB is the server's database filename.
DB string
}
Config is the server configuration.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements a plant journal server.
func NewServer ¶
NewServer loads templates, establishes persistent data storage, sets the server and registers routes.
Click to show internal directories.
Click to hide internal directories.