embeddedetcd

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package embeddedetcd implements an embedded etcd server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*config)

Option is the option for etcd server.

func ConfigureListener

func ConfigureListener(lcs, lps []string) Option

ConfigureListener sets peer urls of listeners.

func RootDir

func RootDir(rootDir string) Option

RootDir sets the root directory of Registry.

type Server

type Server interface {
	io.Closer
	ReadyNotify() <-chan struct{}
	StopNotify() <-chan struct{}
	StoppingNotify() <-chan struct{}
}

Server is the interface of etcd server.

func NewServer

func NewServer(options ...Option) (Server, error)

NewServer returns a new etcd server.

Jump to

Keyboard shortcuts

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