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 PublishedResponse ¶
func NewPublishedResponse ¶
func NewPublishedResponse(message string, offset int) *PublishedResponse
func (PublishedResponse) String ¶
func (pr PublishedResponse) String() string
Click to show internal directories.
Click to hide internal directories.