types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc func(context.Context, *http.Request) interface{}

type HttpResponse

type HttpResponse struct {
	StatusCode int
	Headers    map[string]string
	Body       []byte
}

type ServeOptions

type ServeOptions struct {
	URL            string
	Handler        HandlerFunc
	Method         constants.HttpMethodTypes
	ResponseType   constants.ResponseTypes
	DefaultHeaders map[string]string
}

type StreamChunk

type StreamChunk struct {
	Id   uint32
	Data []byte
}

Jump to

Keyboard shortcuts

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