transport

package
v0.23.23 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Empty = []byte{}

Empty represents an empty byte slice. It can be used as a placeholder or default value where a byte slice is required but no data is provided.

Functions

func New

New creates and returns a new Request and Response pair with a unique ID. It utilizes the UUID library to generate a unique identifier for each request-response pair. The Response is initialized with a default status of 204 (No Content) and the same ID as the Request.

Returns: - *Request: A pointer to a newly created Request object with a unique ID. - *Response: A pointer to a newly created Response object with a status of 204 and the same ID as the Request.

Types

This section is empty.

Directories

Path Synopsis
Package promise provides functionalities for managing asynchronous responses.
Package promise provides functionalities for managing asynchronous responses.
proto

Jump to

Keyboard shortcuts

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