Documentation
¶
Overview ¶
Package server provides a standalone server implementation for Olric
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OlricServer ¶
type OlricServer struct {
// contains filtered or unexported fields
}
OlricServer represents an instance of the Olric distributed in-memory data structure store. It encapsulates logging, configuration, the Olric database instance, and an error group for concurrency management.
func New ¶
func New(c *config.Config) (*OlricServer, error)
New initializes a new OlricServer instance using the provided configuration and returns it or an error.
func (*OlricServer) Shutdown ¶
func (s *OlricServer) Shutdown(ctx context.Context) error
Shutdown gracefully stops the Olric server instance, releasing resources and ensuring a clean termination.
func (*OlricServer) Start ¶
func (s *OlricServer) Start() error
Start launches the Olric server instance and begins listening for incoming requests and termination signals.
Click to show internal directories.
Click to hide internal directories.