server

package
v0.0.0-...-867e715 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 19 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.toml"

	// 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 {
	Memberlist memberlist
	Logging    logging
	Olricd     olricd
	Snapshot   snapshot
}

Config is the main configuration struct

func NewConfig

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

NewConfig creates a new configuration object 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
⌂ 换网址