embedded

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

Cluster is a single-member etcd server running inside the process.

func New

func New(dir string) (*Cluster, error)

New starts an embedded etcd storing its data under dir.

func (*Cluster) Client

func (c *Cluster) Client(prefix string) *clientv3.Client

Client returns an in-process client scoped to prefix.

func (*Cluster) Close

func (c *Cluster) Close()

Close stops the server.

Jump to

Keyboard shortcuts

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