daemon

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrServerClosed indicates that the server has been closed.
	ErrServerClosed = fmt.Errorf("git: %w", net.ErrClosed)
)

Functions

This section is empty.

Types

type GitDaemon

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

GitDaemon represents a Git daemon.

func NewGitDaemon

func NewGitDaemon(ctx context.Context) (*GitDaemon, error)

NewDaemon returns a new Git daemon.

func (*GitDaemon) Close

func (d *GitDaemon) Close() error

Close closes the underlying listener.

func (*GitDaemon) Shutdown

func (d *GitDaemon) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the daemon.

func (*GitDaemon) Start

func (d *GitDaemon) Start() error

Start starts the Git TCP daemon.

Jump to

Keyboard shortcuts

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