processor

package
v0.0.0-...-994a650 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const FrankMessageToChange = "Henllo fren. Looks like something funny here."

Variables

This section is empty.

Functions

func RegisterRequest

func RegisterRequest(request *http.Request, event *github.PullRequestEvent)

RegisterRequest is used to drop a message in the queue

func StartConcurrentProcessorClient

func StartConcurrentProcessorClient(opt *ClientOptions) error

StartConcurrentProcessorClient will run the service that will connect the ML model to GitHub. This probably should be pulled out into a better formed system, but munged together for now.

Types

type ClientOptions

type ClientOptions struct {

	// Configuration to create a client to the gRPC server with
	ModelServerHostname string
	ModelServerPort     string

	// GitHub client credentials
	GithubClientUsername string
	GithubClientPassword string
}

type PullRequestEvent

type PullRequestEvent struct {
	Request *http.Request
	Event   *github.PullRequestEvent
}

func Next

func Next() *PullRequestEvent

Next will return a message from the queue FIFO If no message is in the queue, the function will hang

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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