stream

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MessageChanFullError   = errors.New("message channel is full")
	MessageChanClosedError = errors.New("message channel is closed")
	SendMessageError       = errors.New("send message error")
)

Functions

This section is empty.

Types

type ClientBidiStreamingServer added in v0.0.4

type ClientBidiStreamingServer[Req any, Res any] struct {
	// contains filtered or unexported fields
}

func NewClientBidiStreamingServer added in v0.0.4

func NewClientBidiStreamingServer[Req any, Res any](
	stream grpc.BidiStreamingServer[Req, Res],
	reqCallback ReqCallback[Req],
	logger logger.Logger,
	bufferSize uint32,
) *ClientBidiStreamingServer[Req, Res]

func (*ClientBidiStreamingServer[Req, Res]) Process added in v0.0.4

func (client *ClientBidiStreamingServer[Req, Res]) Process(ctx context.Context) error

func (*ClientBidiStreamingServer[Req, Res]) Send added in v0.0.4

func (client *ClientBidiStreamingServer[Req, Res]) Send(message *Res) error

type ClientServerStreaming added in v0.0.4

type ClientServerStreaming[Res any] struct {
	// contains filtered or unexported fields
}

func NewClientServerStreaming added in v0.0.4

func NewClientServerStreaming[Res any](grpcClient grpc.ServerStreamingServer[Res], bufferSize uint32) *ClientServerStreaming[Res]

func (*ClientServerStreaming[Res]) Process added in v0.0.4

func (client *ClientServerStreaming[Res]) Process(ctx context.Context) error

func (*ClientServerStreaming[Res]) Send added in v0.0.4

func (client *ClientServerStreaming[Res]) Send(message *Res) error

type ReqCallback added in v0.0.4

type ReqCallback[Req any] func(ctx context.Context, req *Req) error

Jump to

Keyboard shortcuts

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