github.com/koko1123/flow-go-1@v0.29.6/module/mempool/herocache/backdata/heropool/linkedlist.go (about)

     1  package heropool
     2  
     3  // link represents a slice-based doubly linked-list node that
     4  // consists of a next and previous poolIndex.
     5  type link struct {
     6  	next poolIndex
     7  	prev poolIndex
     8  }
     9  
    10  // state represents a doubly linked-list by its head and tail pool indices.
    11  type state struct {
    12  	head poolIndex
    13  	tail poolIndex
    14  }