server

package
v0.0.0-...-8fb4044 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 15 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 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(event string, body []byte) error

HandleMessage handles a GitHub event.

func (*Server) Run

func (s *Server) Run() error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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