http

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 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
	Serializer() IBinarySerializer
	Serialize(Pointer) ([]byte, error)
	Deserialize([]byte, Pointer) error
	OnActorBinaryData(IActor, []byte) IOperationResult
	Request() *http.Request
	Response() http.ResponseWriter
	Redirect(string)
	Query(string) string
	Param(string) string
	RemoteAddr() string
	UserAgent() string
}

Jump to

Keyboard shortcuts

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