server

package
v0.0.0-...-ddb4624 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GitHubRawURLPrefix is the URL prefix for GitHub content retrieval.
	GitHubRawURLPrefix = "https://raw.githubusercontent.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	Consumer *nsq.Consumer
}

Queue represents one NSQ queue.

func NewQueue

func NewQueue(topic, channel, lookupd string, handler nsq.Handler) (*Queue, error)

NewQueue returns a new queue instance.

type Server

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

Server provides operation trigger on GitHub events through a long-running job.

func NewServer

func NewServer(config *configuration.Server) (*Server, error)

NewServer returns a new server instance.

func (*Server) FetchRepositoriesConfigs

func (s *Server) FetchRepositoriesConfigs() error

FetchRepositoriesConfigs retrieves the repository specific configurations from GitHub.

func (*Server) HandleMessage

func (s *Server) HandleMessage(message *nsq.Message) error

HandleMessage handles an NSQ message.

func (*Server) Run

func (s *Server) Run()

Run starts the event loop, and only returns when completed.

Jump to

Keyboard shortcuts

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