Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint = string

type Entry

type Entry struct {
	Protocol
	LocalAddr  Endpoint
	RemoteAddr Endpoint
}

type EntryHandle

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

func (*EntryHandle) Done

func (eh *EntryHandle) Done()

func (*EntryHandle) Forget

func (eh *EntryHandle) Forget()

type Instance

type Instance struct {
	Timeout func(Entry) time.Duration
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance() *Instance

func (*Instance) PrintStatus

func (i *Instance) PrintStatus(w io.Writer)

func (*Instance) SetMaxEntries

func (i *Instance) SetMaxEntries(max int)

func (*Instance) SetNoMaxEntries

func (i *Instance) SetNoMaxEntries()

func (*Instance) Wait

func (i *Instance) Wait(ctx context.Context, e Entry, reason string, p priority) (eh *EntryHandle)

    Nil returns are due to context completion.

    func (*Instance) WaitDefault

    func (i *Instance) WaitDefault(ctx context.Context, e Entry) *EntryHandle

    type Protocol

    type Protocol = string