diff options
Diffstat (limited to 'serve_options.go')
| -rw-r--r-- | serve_options.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/serve_options.go b/serve_options.go index 7e7dacf..a8f2426 100644 --- a/serve_options.go +++ b/serve_options.go @@ -3,7 +3,11 @@ package ciigo -import "git.sr.ht/~shulhan/pakakeh.go/lib/memfs" +import ( + "net" + + "git.sr.ht/~shulhan/pakakeh.go/lib/memfs" +) const ( defAddress = `:8080` @@ -11,6 +15,11 @@ const ( // ServeOptions contains the options to use on Serve function. type ServeOptions struct { + // Listener define the network listener to be used for serving HTTP + // connection. + // The Listener can be activated using systemd socket. + Listener net.Listener + // Mfs contains pointer to variable generated from Generate. // This option is used to use embedded files for serving on HTTP. Mfs *memfs.MemFS |
