http

package
v1.19.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandlerFunc

type HttpHandlerFunc func(IServerDispatcher) error

type IHttpHandler

type IHttpHandler interface {
	Method() string
	Path() string
	HandlerFunc() HttpHandlerFunc
}

type IHttpHandlerFactory

type IHttpHandlerFactory interface {
	Handlers() []IHttpHandler
}

type IServerDispatcher

type IServerDispatcher interface {
	Logger() ILogger
	Actor() IActor
	Serializer() ISerializer
	Serialize(Pointer) ([]byte, error)
	Deserialize([]byte, Pointer) error
	OnData(IActor, []byte) IOperationResult
	Request() *http.Request
	Response() http.ResponseWriter
	Redirect(string)
	Query(string) string
	Param(string) string
}

Jump to

Keyboard shortcuts

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