server

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 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 Olricd

type Olricd struct {
	// contains filtered or unexported fields
}

Olricd represents a new Olricd instance.

func New

func New(c *config.Config) (*Olricd, error)

New creates a new Server instance

func (*Olricd) Shutdown added in v0.5.0

func (s *Olricd) Shutdown(ctx context.Context) error

Shutdown stops background servers and leaves the cluster.

func (*Olricd) Start

func (s *Olricd) Start() error

Start starts a new olricd server instance and blocks until the server is closed.

Jump to

Keyboard shortcuts

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