package
0.0.0-20241015184656-97498d8d1c4e
Repository: https://github.com/nomasters/haystack.git
Documentation: pkg.go.dev
# Functions
ListenAndServe initiates and runs the haystack server and returns an error.
WithContext takes context.Context and passes it to the server struct.
WithShutdownGracePeriod allows you to set the gracePeriod.
WithStorage allows setting a storage.GetSetCloser in the server runtime.
WithWorkerCount takes count of uint64 and passes it to the server struct if worker count is set to zero, workers are set to runtime.NumCPU().
# Type aliases
Option TBD.