transport

package
v0.0.0-...-293aeef Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteResponse

func WriteResponse[T fmt.Stringer](w http.ResponseWriter, statusCode int, responseBody *T)

Types

type ErrorResponse

type ErrorResponse struct {
	Message string
}

func NewErrorResponse

func NewErrorResponse(message string) *ErrorResponse

func (ErrorResponse) String

func (er ErrorResponse) String() string

type Message

type Message struct {
	Topic string
	Data  []byte
}

func (Message) String

func (m Message) String() string

type PublishedResponse

type PublishedResponse struct {
	Message string
	Offset  int
}

func NewPublishedResponse

func NewPublishedResponse(message string, offset int) *PublishedResponse

func (PublishedResponse) String

func (pr PublishedResponse) String() string

Jump to

Keyboard shortcuts

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