orphanpool

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractOrphanPool

type AbstractOrphanPool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewAbstractOrphanPool

func NewAbstractOrphanPool() *AbstractOrphanPool

func (*AbstractOrphanPool) Count

func (aop *AbstractOrphanPool) Count() int

func (*AbstractOrphanPool) Fetch

func (aop *AbstractOrphanPool) Fetch(id string) (entry PoolEntry, exists bool)

func (*AbstractOrphanPool) FetchSubs

func (aop *AbstractOrphanPool) FetchSubs(pid string) (entries []PoolEntry, exists bool)

func (*AbstractOrphanPool) Has

func (aop *AbstractOrphanPool) Has(id string) bool

func (*AbstractOrphanPool) IDs

func (aop *AbstractOrphanPool) IDs() []string

func (*AbstractOrphanPool) Items

func (aop *AbstractOrphanPool) Items() map[string]PoolEntry

func (*AbstractOrphanPool) Put

func (aop *AbstractOrphanPool) Put(entry PoolEntry, priors []string)

func (*AbstractOrphanPool) Read

func (aop *AbstractOrphanPool) Read(id string) (entry PoolEntry, exists bool)

func (*AbstractOrphanPool) ReadSubs

func (aop *AbstractOrphanPool) ReadSubs(id string) (entries []PoolEntry)

type PoolEntry

type PoolEntry interface {
	OrphanPoolID() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL