repo_indexer

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRepoEventPermission added in v0.2.3

func CheckRepoEventPermission(ctx context.Context, resourceId string) (*models.RepoEvent, error)

func CheckRepoEventsPermission added in v0.2.3

func CheckRepoEventsPermission(ctx context.Context, resourceIds []string) ([]*models.RepoEvent, error)

func Serve

func Serve(cfg *config.Config)

Types

type EventController

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

func NewEventController

func NewEventController(ctx context.Context) *EventController

func (*EventController) Dequeue

func (i *EventController) Dequeue()

func (*EventController) ExecuteEvent

func (i *EventController) ExecuteEvent(ctx context.Context, repoEvent *models.RepoEvent, cb func())

func (*EventController) GetEventLength

func (i *EventController) GetEventLength() int32

func (*EventController) NewRepoEvent

func (i *EventController) NewRepoEvent(repoId string, ownerPath sender.OwnerPath) (*models.RepoEvent, error)

func (*EventController) Serve

func (i *EventController) Serve()

type Server

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

func (*Server) Checker added in v0.1.2

func (p *Server) Checker(ctx context.Context, req interface{}) error

func (*Server) Cron

func (p *Server) Cron()

func (*Server) DescribeRepoEvents

func (*Server) IndexRepo

func (p *Server) IndexRepo(ctx context.Context, req *pb.IndexRepoRequest) (*pb.IndexRepoResponse, error)

Jump to

Keyboard shortcuts

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