Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Analyzers []lookout.AnalyzerConfig
}
Config is a server configuration
type Options ¶ added in v0.8.0
type Options struct {
Poster lookout.Poster
FileGetter lookout.FileGetter
Analyzers map[string]lookout.Analyzer
// EventOp is the operator for the Event persistence. Can be left unset.
EventOp store.EventOperator
// CommentOp is the operator for the Comment persistence. Can be left unset.
CommentOp store.CommentOperator
// OrganizationOp is the operator for the Organization persistence. Can be left unset.
OrganizationOp store.OrganizationOperator
// ReviewTimeout is the timeout for an analyzer to reply a NotifyReviewEvent.
// Zero means no timeout.
ReviewTimeout time.Duration
// PushTimeout is the timeout for an analyzer to reply a NotifyPushEvent.
// Zero means no timeout.
PushTimeout time.Duration
// ExitOnError set to true will stop the server and return an error
// if any analyzer Notify* call or a posting call fails
ExitOnError bool
}
Options defines the options for NewServer
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements glue between providers / data-server / analyzers
func (*Server) HandleEvent ¶ added in v0.3.0
HandleEvent processes the event calling the analyzers, and posting the results
func (*Server) HandlePush ¶
HandlePush sends request to analyzers concurrently
func (*Server) HandleReview ¶
HandleReview sends request to analyzers concurrently
Click to show internal directories.
Click to hide internal directories.