notifier

package
v14.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

Notifier sends messages stating that an OID has been rewritten, looking up the type of the OID if necessary. It is not safe for concurrent use

func New

func New(ctx context.Context, catfileCache catfile.Cache, repo git.RepositoryExecutor, chunker *chunk.Chunker) (*Notifier, error)

New instantiates a new Notifier

func (*Notifier) Notify

func (n *Notifier) Notify(ctx context.Context, oldOid, newOid string, isInternalRef bool) error

Notify builds a new message and sends it to the chunker

Jump to

Keyboard shortcuts

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