streamwriter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[SizeT size, Req any, Resp any](chunkSize SizeT, stream Stream[Req, Resp], req Request[Req]) *writer[SizeT, Req, Resp]

Types

type Request

type Request[T any] func(p []byte) *T

type Stream

type Stream[Req any, Resp any] interface {
	Send(req *Req) error
	CloseAndRecv() (*Resp, error)
}

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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