Documentation ¶ Index ¶ func Serve(directory string, globs ...string) error func SetAuth(auth string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Serve ¶ func Serve(directory string, globs ...string) error Serve will load audio from a directory using any number of file globs. This function blocks. func SetAuth ¶ added in v1.0.4 func SetAuth(auth string) SetAuth will require authentication for all web requests. The authentication string should be in the format "username:password" which will be used for basic authentication. The values will not be stored in memory, rather their hashes will. Types ¶ This section is empty. Source Files ¶ View all Source files routes.go server.go Click to show internal directories. Click to hide internal directories.