api

package
v0.0.0-...-caeb8ab Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package api implements the endpoints accessed by GitHub

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

An API object wraps the http server

func New

func New(serverConfig baseapp.HTTPConfig, githubConfig githubapp.Config, logger zerolog.Logger) *API

New sets up the http server and configures it to serve the github webhook handers we suport

func (*API) Start

func (api *API) Start() error

Start the server and block, serving the webhook API

Jump to

Keyboard shortcuts

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