Documentation
¶
Index ¶
- func FullCommand() string
- func RunServer()
- type GitHandler
- type HttpServer
- type Server
- func (s *Server) Blobs(ctx context.Context, req *pb.BlobRequest) (*pb.BlobResponse, error)
- func (s *Server) Commits(ctx context.Context, req *pb.CommitRequest) (*pb.CommitResponse, error)
- func (s *Server) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingReply, error)
- func (s *Server) PreReceive(ctx context.Context, req *api.PreReceiveRequest) (*api.HookResult, error)
- func (s *Server) References(ctx context.Context, req *pb.ReferenceRequest) (*pb.ReferenceResponse, error)
- func (s *Server) RunHooksServer() error
- func (s *Server) Serve() error
- func (s *Server) Tags(ctx context.Context, req *pb.TagRequest) (*pb.TagResponse, error)
- func (s *Server) Trees(ctx context.Context, req *pb.TreeRequest) (*pb.TreeResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullCommand ¶
func FullCommand() string
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 (*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) 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 (*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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.