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

code

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Comments   db.CommentStore
	CommitLog  func(r repo.Repo) ([]git.Commit, error)
	Diff       func(r repo.Repo) ([]git.File, error)
	DiffCommit func(r repo.Repo, sha string) ([]git.File, error)
	Home       string
	HunkCommit func(r repo.Repo, path string, newStart, newCount int) (git.Commit, error)
	ListRepos  func() ([]repo.Repo, error)
	LookupRepo func(slug string) (repo.Repo, bool)
	ShowBlob   func(r repo.Repo, path string) ([]byte, error)
	ShowCommit func(r repo.Repo, sha string) (git.Commit, error)
	ShowFile   func(r repo.Repo, path string) ([]string, error)
}

func DefaultDeps

func DefaultDeps(home string) Deps

type Server

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

func NewServer

func NewServer(deps Deps) (*Server, error)

func (*Server) Handler

func (s *Server) Handler() http.Handler

Jump to

Keyboard shortcuts

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