daemon

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerClosed = fmt.Errorf("git: %w", net.ErrClosed)

ErrServerClosed indicates that the server has been closed.

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) ListenAndServe added in v0.8.0

func (d *GitDaemon) ListenAndServe() error

ListenAndServe starts the Git TCP daemon.

func (*GitDaemon) Serve added in v0.8.0

func (d *GitDaemon) Serve(listener net.Listener) error

Serve listens on the TCP network address and serves Git requests.

func (*GitDaemon) Shutdown

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

Shutdown gracefully shuts down the daemon.

Jump to

Keyboard shortcuts

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