client

package
v0.0.0-...-c415e3a Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Overview

*

  • @Author: zhangchao
  • @Description:
  • @Date: 2021/9/14 4:27 下午

Index

Constants

View Source
const (
	EventNodeCreated         = EventType(1)
	EventNodeDeleted         = EventType(2)
	EventNodeDataChanged     = EventType(3)
	EventNodeChildrenChanged = EventType(4)

	EventSession     = EventType(-1)
	EventNotWatching = EventType(-2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Create(path string, data []byte) error
	CreateInOrder(path string, data []byte) (string, error)
	Update(path string, data []byte) error
	Delete(path string) error

	Read(path string, must bool) ([]byte, error)
	List(path string, must bool) ([]string, error)

	Close() error

	WatchInOrder(path string) (<-chan Event, []string, error)
}

type Event

type Event struct {
	Type EventType
}

type EventType

type EventType int32

func (EventType) String

func (t EventType) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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