config

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common[C responsewriter.Client] struct {
	LimitClientParallelRequests         int64
	LimitClientEndpointParallelRequests int64
	Ctx                                 context.Context
	Errors                              ErrorFunc
	GoPool                              GoPoolFunc[C]
	PeriodicRunner                      periodic.Func
	MessagePool                         *pool.Pool
	GetToken                            client.GetTokenFunc
	MaxMessageSize                      uint32
	BlockwiseTransferTimeout            time.Duration
	BlockwiseSZX                        blockwise.SZX
	BlockwiseEnable                     bool
}

func NewCommon

func NewCommon[C responsewriter.Client]() Common[C]

type ErrorFunc

type ErrorFunc = func(error)

type GoPoolFunc

type GoPoolFunc[C responsewriter.Client] func(processReqFunc ProcessRequestFunc[C], req *pool.Message, cc C, handler HandlerFunc[C]) error

type HandlerFunc

type HandlerFunc[C responsewriter.Client] func(w *responsewriter.ResponseWriter[C], r *pool.Message)

type ProcessRequestFunc

type ProcessRequestFunc[C responsewriter.Client] func(req *pool.Message, cc C, handler HandlerFunc[C])

Jump to

Keyboard shortcuts

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