watch

package
v0.0.0-...-f6126b0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventTransformer

type EventTransformer interface {
	MungeEvents([]*clientv3.Event) (metaRev int64, events []*mvccpb.Event, ok bool)
}

type Mux

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

Mux bridges between incoming watch connections from clients and outgoing watch connections to member clusters.

func NewMux

func NewMux(gapTimeout time.Duration, bufferLen int, et EventTransformer) *Mux

func (*Mux) Run

func (m *Mux) Run(ctx context.Context)

func (*Mux) StartWatch

func (m *Mux) StartWatch(ctx context.Context, client *clientv3.Client) (*Status, error)

func (*Mux) Watch

func (m *Mux) Watch(ctx context.Context, req *etcdserverpb.WatchCreateRequest, ch chan<- *etcdserverpb.WatchResponse) (func(), int64)

type Status

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

func (*Status) Close

func (s *Status) Close()

Jump to

Keyboard shortcuts

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