zoodb

package
v0.0.0-...-7e59545 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitLines

func SplitLines(s string) []string

Types

type Session

type Session struct {
	SessionID      uint64
	Timeout        time.Duration
	EphemeralCount int32
}

func SessionFromString

func SessionFromString(s string) (*Session, error)

type Znode

type Znode struct {
	Path           string
	CZxid          uint64
	Ctime          time.Time
	MZxid          uint64
	Mtime          time.Time
	PZxid          uint64
	CVersion       int32
	DataVersion    int32
	AclVersion     int32
	EphemeralOwner uint64
	Data           []byte
}

func ZnodeFromString

func ZnodeFromString(s []string) (*Znode, error)

type ZooDb

type ZooDb struct {
	LastProcessedZxid uint64
	Znodes            []*Znode
	Sessions          []*Session
}

func NewZooDb

func NewZooDb(s *bufio.Scanner) (*ZooDb, error)

Jump to

Keyboard shortcuts

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