embeddedetcd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 9 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