server

package
v0.0.0-...-1054e26 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullCommand

func FullCommand() string

func RunServer

func RunServer()

Types

type GitHandler

type GitHandler struct {
	CGI string
	// contains filtered or unexported fields
}

func NewGitHandler

func NewGitHandler(storage *storage.Storage) *GitHandler

func (*GitHandler) HandleRequest

func (h *GitHandler) HandleRequest(w http.ResponseWriter, r *http.Request)

type HttpServer

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

func NewHttpServer

func NewHttpServer(server *Server) *HttpServer

func (*HttpServer) Run

func (s *HttpServer) Run() error

type Server

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

func NewServer

func NewServer(storage *storage.Storage) *Server

func (*Server) Blobs

func (s *Server) Blobs(ctx context.Context, req *pb.BlobRequest) (*pb.BlobResponse, error)

Blobs return blob content

func (*Server) Commits

func (s *Server) Commits(ctx context.Context, req *pb.CommitRequest) (*pb.CommitResponse, error)

Commits return commit information

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingReply, error)

func (*Server) PreReceive

func (s *Server) PreReceive(ctx context.Context, req *api.PreReceiveRequest) (*api.HookResult, error)

func (*Server) References

func (s *Server) References(ctx context.Context, req *pb.ReferenceRequest) (*pb.ReferenceResponse, error)

References return refs information

func (*Server) RunHooksServer

func (s *Server) RunHooksServer() error

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Tags

func (s *Server) Tags(ctx context.Context, req *pb.TagRequest) (*pb.TagResponse, error)

Tags return tag information

func (*Server) Trees

func (s *Server) Trees(ctx context.Context, req *pb.TreeRequest) (*pb.TreeResponse, error)

Trees return tree information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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