dispatchers

package
v0.0.0-...-977fba5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dispatchers Top level of core library for dispatcher message interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpDispatcher

type HttpDispatcher struct {
	Request  *fasthttp.Request
	Response *fasthttp.Response
}

HttpDispatcher struct of http dispatcher.

func (*HttpDispatcher) Release

func (o *HttpDispatcher) Release()

func (*HttpDispatcher) Run

func (o *HttpDispatcher) Run(timeout int) (body []byte, err error)

Run 执行投递.

type PoolManager

type PoolManager interface {
	// AcquireHttp
	// acquire http dispatcher instance from pool.
	AcquireHttp() *HttpDispatcher

	// ReleaseHttp
	// release http dispatcher instance into pool.
	ReleaseHttp(x *HttpDispatcher)
}

PoolManager interface of pool manager.

var (
	// Pool
	// instance of pool manager.
	Pool PoolManager
)

Jump to

Keyboard shortcuts

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