Documentation ¶
Index ¶
- Variables
- func Consumer[Req any](f ConsumerFunc[Req]) http.HandlerFunc
- func ConsumerWith[Req any](c Codec, f ConsumerFunc[Req]) http.HandlerFunc
- func LeaderProvider[Resp any](l api.LeaderChecker, f ProviderFunc[Resp]) http.HandlerFunc
- func Processor[Req, Resp any](f ProcessorFunc[Req, Resp]) http.HandlerFunc
- func ProcessorWith[Req, Resp any](c Codec, f ProcessorFunc[Req, Resp]) http.HandlerFunc
- func Provider[Resp any](f ProviderFunc[Resp]) http.HandlerFunc
- func ProviderWith[Resp any](c Codec, f ProviderFunc[Resp]) http.HandlerFunc
- type Codec
- type ConsumerFunc
- type Context
- type ProcessorFunc
- type ProviderFunc
- type RPC
- type StatusCoder
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCodec = JSON()
Functions ¶
func Consumer ¶
func Consumer[Req any](f ConsumerFunc[Req]) http.HandlerFunc
func ConsumerWith ¶
func ConsumerWith[Req any](c Codec, f ConsumerFunc[Req]) http.HandlerFunc
func LeaderProvider ¶
func LeaderProvider[Resp any](l api.LeaderChecker, f ProviderFunc[Resp]) http.HandlerFunc
func Processor ¶
func Processor[Req, Resp any](f ProcessorFunc[Req, Resp]) http.HandlerFunc
func ProcessorWith ¶
func ProcessorWith[Req, Resp any](c Codec, f ProcessorFunc[Req, Resp]) http.HandlerFunc
func Provider ¶
func Provider[Resp any](f ProviderFunc[Resp]) http.HandlerFunc
func ProviderWith ¶
func ProviderWith[Resp any](c Codec, f ProviderFunc[Resp]) http.HandlerFunc
Types ¶
type Codec ¶
type ConsumerFunc ¶
type Context ¶
func NewContext ¶
type ProcessorFunc ¶
type ProviderFunc ¶
type StatusCoder ¶
type StatusCoder interface{ StatusCode() int }
Click to show internal directories.
Click to hide internal directories.