responsequeue

package
v0.0.0-...-cacfd1a Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

responsequeue ensures that responses to requests are sent in the order they are received

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseQueue

type ResponseQueue struct {
	// contains filtered or unexported fields
}

func CreateResponseQueue

func CreateResponseQueue(writer io.Writer) *ResponseQueue

func (*ResponseQueue) Close

func (queue *ResponseQueue) Close()

func (*ResponseQueue) RecordOutgoingRequest

func (queue *ResponseQueue) RecordOutgoingRequest(message message.Message)

RecordOutgoingRequest tracks an outgoing request so that responses to pipelined requests caan be sent in order. It is called only by the goroutine that accepts messages from a client of the proxy

Jump to

Keyboard shortcuts

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