bufclient

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

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(pool *AppendStreamPool, ts *gateway.TopicService, req *v1.AppendRequest) (err error)

Types

type AppendChan

type AppendChan = chan *v1.AppendRequest

type AppendStream

type AppendStream struct {
	Stream v1.BufferService_AppendClient
	ReqCh  AppendChan
}

type AppendStreamPool

type AppendStreamPool struct {
	Ctx         context.Context // Every stream will have the same context
	ResCh       chan *v1.AppendResponse
	Streams     map[domain.BufferAddress]AppendChan
	DialOptions []grpc.DialOption
	// contains filtered or unexported fields
}

func NewAppendStreamPool

func NewAppendStreamPool(ctx context.Context, opts ...grpc.DialOption) *AppendStreamPool

func (*AppendStreamPool) Append

func (p *AppendStreamPool) Append(addr domain.BufferAddress, req *v1.AppendRequest)

Jump to

Keyboard shortcuts

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