Documentation ¶
Overview ¶
Package api is used to create, and run a new, initialized backend server instance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string // Host to run the server on. Port string // Port to run the server on. }
Config holds server's configuration options.
type SearchIn ¶
type SearchIn struct { Datastore *sql.DB // Datastore to search in. BookTable string // Table to search in. }
SearchIn Contains a database and name of the table to search in. It is a copy of package books's SearchIn struct created to prevent importing of books package into main to limit dependency.
Click to show internal directories.
Click to hide internal directories.