github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/utils/allocator/interfaces.go (about)

     1  package allocator
     2  
     3  // Allocator is an allocator interface
     4  type Allocator interface {
     5  
     6  	// Allocate allocates a string
     7  	Allocate() string
     8  
     9  	// Release releases a string
    10  	Release(item string)
    11  
    12  	// AllocateInt allocates an int
    13  	AllocateInt() int
    14  
    15  	// ReleaseInt releases an item of type integer.
    16  	ReleaseInt(item int)
    17  }