server

package
v0.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package server provides a standalone server implementation for Olric

Index

Constants

View Source
const (
	// DefaultConfigFile is the default configuration file path on a Unix-based operating system.
	DefaultConfigFile = "olricd.yaml"

	// EnvConfigFile is the name of environment variable which can be used to override default configuration file path.
	EnvConfigFile = "OLRICD_CONFIG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceDiscovery map[string]interface{} `yaml:"serviceDiscovery"`
	Memberlist       memberlist
	Logging          logging
	Olricd           olricd
	Cache            cache
	DMaps            map[string]cache
}

Config is the main configuration struct

func NewConfig

func NewConfig(path string) (*Config, error)

NewConfig creates a new configuration instance of olricd

type Olricd

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

Olricd represents a new Olricd instance.

func New

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

New creates a new Server instance

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