Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*server) error
Option defines the interface to use to set options on the Server instance
func WithLogger ¶
WithLogger sets which logger instance the server should use
func WithSourceFiles ¶
WithSourceFiles sets up the server with some initial data source files. TODO: each time the server restarts it creates a new ID for the same datafile. This means clients will download the same files multiple times. We could instead use file hashes as IDs, but this might be inefficient for large data files. Alternatively, using filenames as IDs exposes implementation details to the clients of our server.
Click to show internal directories.
Click to hide internal directories.