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: 0

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