kstream

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgConnectReq          = 101
	MsgNodeHeartBeatResp   = 1001
	MsgTestStepUpdateResp  = 1002
	MsgWorkerHeartBeatResp = 1003
)

Variables

View Source
var StreamStore *stores

Functions

func InitStreamStores

func InitStreamStores()

Types

type Callback

type Callback func(reply *pb.CellResp)

type ModelType added in v0.1.3

type ModelType int
const (
	ModelTypeOnlyWrite ModelType = iota + 1
	ModelTypeOnlyRead
	ModelTypeBoth
)

type ProxyStream

type ProxyStream struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func InitStream

func InitStream(client pb.StreamClient, model ModelType, callback Callback) *ProxyStream

func (*ProxyStream) DelStream

func (p *ProxyStream) DelStream()

func (*ProxyStream) GetStream

func (p *ProxyStream) GetStream(client pb.StreamClient) pb.Stream_CellClient

func (*ProxyStream) PushChan

func (p *ProxyStream) PushChan(info *pb.CellReq)

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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