diff options
Diffstat (limited to 'hotline/server.go')
| -rw-r--r-- | hotline/server.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hotline/server.go b/hotline/server.go index 020f878..14cee04 100644 --- a/hotline/server.go +++ b/hotline/server.go @@ -141,6 +141,13 @@ func WithPresenceTracker(p PresenceTracker) func(s *Server) { } } +// WithFileStore sets the storage backend for the file library. Defaults to OSFileStore. +func WithFileStore(fs FileStore) func(s *Server) { + return func(s *Server) { + s.FS = fs + } +} + // WithTLS optionally enables TLS support on the specified port. func WithTLS(tlsConfig *tls.Config, port int) func(s *Server) { return func(s *Server) { |