Help us shape the future of Go! Take the 2026 Go Developer Survey

receiveflow

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package receiveflow overlaps validation while preserving native Git ref transactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Committed

func Committed(repository string, newIDs, refs []string)

func Register

func Register(repository string, input io.Reader) (io.Reader, func())

func Wait

func Wait(ctx context.Context, repository string, oldIDs, newIDs, refs []string)

Types

type Registry

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

func (*Registry) Committed

func (registry *Registry) Committed(repository string, newIDs, refs []string)

Committed is called by the existing post-receive API after Git updated the ref.

func (*Registry) Register

func (registry *Registry) Register(repository string, input io.Reader) (io.Reader, func())

Register preserves every input byte; registrations live only until this RPC exits.

func (*Registry) Wait

func (registry *Registry) Wait(ctx context.Context, repository string, oldIDs, newIDs, refs []string)

Wait runs only after authorization and validation, never instead of Git's CAS.

Jump to

Keyboard shortcuts

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