core

package
v0.0.0-...-e81607a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Data        string `json:"data"`
	NumChildren int32  `json:"numChildren"`
}

type ZkConf

type ZkConf = map[string]string

type ZkService

type ZkService interface {
	List(name string) ([]string, error)
	Get(name string) (*Node, error)
	Create(name string, data []byte) error
	Update(name string, data []byte) error
	Del(name string) error
	Exists(name string) (bool, error)
	Stats() (ZkStats, error)
	GetConf() (ZkConf, error)
}

func NewZkService

func NewZkService(zkurl string) (ZkService, error)

type ZkStats

type ZkStats = map[string]string

Jump to

Keyboard shortcuts

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