Documentation ¶
Index ¶
- Constants
- func WithCreateFunc[PT Item[T], T any](f func(ctx context.Context) (PT, error)) option[PT, T]
- func WithMaxSize[PT Item[T], T any](size int) option[PT, T]
- func WithMinSize[PT Item[T], T any](size int) option[PT, T]
- func WithProducersCount[PT Item[T], T any](count int) option[PT, T]
- func WithTrace[PT Item[T], T any](t *Trace) option[PT, T]
- type CloseDoneInfo
- type CloseStartInfo
- type GetDoneInfo
- type GetStartInfo
- type Item
- type NewDoneInfo
- type NewStartInfo
- type Pool
- type ProduceDoneInfo
- type ProduceStartInfo
- type PutDoneInfo
- type PutStartInfo
- type SpawnDoneInfo
- type SpawnStartInfo
- type Trace
- type TryDoneInfo
- type TryStartInfo
- type WantDoneInfo
- type WantStartInfo
- type WithDoneInfo
- type WithStartInfo
Constants ¶
View Source
const ( DefaultMaxSize = 50 DefaultMinSize = 0 DefaultProducersCount = 1 )
Variables ¶
This section is empty.
Functions ¶
func WithCreateFunc ¶ added in v3.58.0
func WithMaxSize ¶ added in v3.58.0
func WithMinSize ¶ added in v3.58.0
func WithProducersCount ¶ added in v3.58.0
Types ¶
type CloseDoneInfo ¶ added in v3.58.0
type CloseDoneInfo struct {
Error error
}
type CloseStartInfo ¶ added in v3.58.0
type CloseStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller }
type GetDoneInfo ¶ added in v3.58.0
type GetDoneInfo struct {
Error error
}
type GetStartInfo ¶ added in v3.58.0
type GetStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller }
type NewDoneInfo ¶ added in v3.58.0
type NewStartInfo ¶ added in v3.58.0
type NewStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller // input settings MinSize int MaxSize int ProducersCount int }
type ProduceDoneInfo ¶ added in v3.58.0
type ProduceDoneInfo struct{}
type ProduceStartInfo ¶ added in v3.58.0
type ProduceStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller Concurrency int }
type PutDoneInfo ¶ added in v3.58.0
type PutDoneInfo struct {
Error error
}
type PutStartInfo ¶ added in v3.58.0
type PutStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller }
type SpawnDoneInfo ¶ added in v3.58.0
type SpawnDoneInfo struct {
Error error
}
type SpawnStartInfo ¶ added in v3.58.0
type SpawnStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller }
type Trace ¶ added in v3.58.0
type Trace struct { OnNew func(*NewStartInfo) func(*NewDoneInfo) OnClose func(*CloseStartInfo) func(*CloseDoneInfo) OnProduce func(*ProduceStartInfo) func(*ProduceDoneInfo) OnTry func(*TryStartInfo) func(*TryDoneInfo) OnWith func(*WithStartInfo) func(*WithDoneInfo) OnPut func(*PutStartInfo) func(*PutDoneInfo) OnGet func(*GetStartInfo) func(*GetDoneInfo) OnSpawn func(*SpawnStartInfo) func(*SpawnDoneInfo) OnWant func(*WantStartInfo) func(*WantDoneInfo) }
type TryDoneInfo ¶ added in v3.58.0
type TryDoneInfo struct {
Error error
}
type TryStartInfo ¶ added in v3.58.0
type TryStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller }
type WantDoneInfo ¶ added in v3.58.0
type WantDoneInfo struct {
Error error
}
type WantStartInfo ¶ added in v3.58.0
type WantStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller }
type WithDoneInfo ¶ added in v3.58.0
type WithStartInfo ¶ added in v3.58.0
type WithStartInfo struct { // Context make available context in trace stack.Callerback function. // Pointer to context provide replacement of context in trace stack.Callerback function. // Warning: concurrent access to pointer on client side must be excluded. // Safe replacement of context are provided only inside stack.Callerback function Context *context.Context Call stack.Caller }
Click to show internal directories.
Click to hide internal directories.