server

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL