Documentation ¶
Index ¶
- func Serve(cfg *config.Config)
- type EventController
- type Server
- func (p *Server) Checker(ctx context.Context, req interface{}) error
- func (p *Server) Cron()
- func (p *Server) DescribeRepoEvents(ctx context.Context, req *pb.DescribeRepoEventsRequest) (*pb.DescribeRepoEventsResponse, error)
- func (p *Server) IndexRepo(ctx context.Context, req *pb.IndexRepoRequest) (*pb.IndexRepoResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventController ¶
func NewEventController ¶
func NewEventController(pi *pi.Pi) *EventController
func (*EventController) Dequeue ¶
func (i *EventController) Dequeue()
func (*EventController) ExecuteEvent ¶
func (i *EventController) ExecuteEvent(repoEvent *models.RepoEvent, cb func())
func (*EventController) GetEventLength ¶
func (i *EventController) GetEventLength() int32
func (*EventController) NewRepoEvent ¶
func (i *EventController) NewRepoEvent(repoId, owner string) (*models.RepoEvent, error)
func (*EventController) Serve ¶
func (i *EventController) Serve()
type Server ¶
func (*Server) DescribeRepoEvents ¶
func (p *Server) DescribeRepoEvents(ctx context.Context, req *pb.DescribeRepoEventsRequest) (*pb.DescribeRepoEventsResponse, error)
func (*Server) IndexRepo ¶
func (p *Server) IndexRepo(ctx context.Context, req *pb.IndexRepoRequest) (*pb.IndexRepoResponse, error)
Click to show internal directories.
Click to hide internal directories.