copies

package
v0.0.0-...-535a2f3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	Mu sync.Mutex
	// contains filtered or unexported fields
}

func (*List) Add

func (list *List) Add(o Owner)

func (*List) Contains

func (list *List) Contains(o Owner) (ok bool)

func (*List) Len

func (list *List) Len() int

func (*List) Owners

func (list *List) Owners() (owners []Owner)

func (*List) Remove

func (list *List) Remove(o Owner)

type Owner

type Owner interface {
	Id() interface{}
}

type Reg

type Reg struct {
	// contains filtered or unexported fields
}

func NewReg

func NewReg() *Reg

func (*Reg) List

func (r *Reg) List(h checksum.Hash) *List

func (*Reg) RemoveOwner

func (r *Reg) RemoveOwner(o Owner)

Jump to

Keyboard shortcuts

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