Documentation ¶
Index ¶
- func SectionPrefixForIndex(name string) string
- type ElfDirectory
- func (e *ElfDirectory) List(kind string) ([]uint64, error)
- func (e *ElfDirectory) Load(kind string, id uint64) (*segment.Data, io.Closer, error)
- func (e *ElfDirectory) Lock() error
- func (e *ElfDirectory) Persist(kind string, id uint64, w index.WriterTo, closeCh chan struct{}) error
- func (e *ElfDirectory) Remove(kind string, id uint64) error
- func (e *ElfDirectory) Setup(readOnly bool) (err error)
- func (e *ElfDirectory) Stats() (numItems uint64, numBytes uint64)
- func (e *ElfDirectory) Sync() error
- func (e *ElfDirectory) Unlock() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SectionPrefixForIndex ¶
Types ¶
type ElfDirectory ¶
type ElfDirectory struct {
// contains filtered or unexported fields
}
func NewElfDirectory ¶
func NewElfDirectory(elfPath, dirName string) *ElfDirectory
func (*ElfDirectory) Lock ¶
func (e *ElfDirectory) Lock() error
func (*ElfDirectory) Setup ¶
func (e *ElfDirectory) Setup(readOnly bool) (err error)
func (*ElfDirectory) Stats ¶
func (e *ElfDirectory) Stats() (numItems uint64, numBytes uint64)
func (*ElfDirectory) Sync ¶
func (e *ElfDirectory) Sync() error
func (*ElfDirectory) Unlock ¶
func (e *ElfDirectory) Unlock() error
Click to show internal directories.
Click to hide internal directories.