stream

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteToStream

func WriteToStream(data []byte, server GRPCStreamServer) error

WriteToStream writes data to stream server in chunks.

Types

type GRPCStreamServer

type GRPCStreamServer interface {
	// Send sends chunked data.
	Send(response *pbTypes.ChunkedDataResponse) error
}

GRPCStreamServer is used to stream data.

type Writer

type Writer func([]byte, GRPCStreamServer) error

Writer is used to write data to a stream server.

Jump to

Keyboard shortcuts

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