diff options
author | 2024-08-14 12:08:24 +0000 | |
---|---|---|
committer | 2024-08-14 12:08:24 +0000 | |
commit | f8d5b9f49c150574442c2d30add41981ac67e97b (patch) | |
tree | e334c632223430673b422a2d8562b494c101d174 /vendor/codeberg.org/gruf/go-structr/queue.go | |
parent | [security] harden account update logic (#3198) (diff) | |
download | gotosocial-f8d5b9f49c150574442c2d30add41981ac67e97b.tar.xz |
update go-structr to v0.8.8 (#3199)
Diffstat (limited to 'vendor/codeberg.org/gruf/go-structr/queue.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-structr/queue.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vendor/codeberg.org/gruf/go-structr/queue.go b/vendor/codeberg.org/gruf/go-structr/queue.go index 1c49edbb1..f48d1530c 100644 --- a/vendor/codeberg.org/gruf/go-structr/queue.go +++ b/vendor/codeberg.org/gruf/go-structr/queue.go @@ -10,15 +10,15 @@ import ( // for initializing a struct queue. type QueueConfig[StructType any] struct { - // Indices defines indices to create - // in the Queue for the receiving - // generic struct parameter type. - Indices []IndexConfig - // Pop is called when queue values // are popped, during calls to any // of the Pop___() series of fns. Pop func(StructType) + + // Indices defines indices to create + // in the Queue for the receiving + // generic struct parameter type. + Indices []IndexConfig } // Queue provides a structure model queue with @@ -26,17 +26,17 @@ type QueueConfig[StructType any] struct { // defined lookups of field combinations. type Queue[StructType any] struct { - // indices used in storing passed struct - // types by user defined sets of fields. - indices []Index + // hook functions. + copy func(StructType) StructType + pop func(StructType) // main underlying // struct item queue. queue list - // hook functions. - copy func(StructType) StructType - pop func(StructType) + // indices used in storing passed struct + // types by user defined sets of fields. + indices []Index // protective mutex, guards: // - Queue{}.queue |