igithub

package
v0.0.0-...-780b4e3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubInstallation

func NewGitHubInstallation(installationId int, conf *GithubConfig) (*github.Client, error)

Types

type GithubConfig

type GithubConfig struct {
	GithubApp GithubConfigApplication `yaml:"github"`
}

func ReadGithubConfig

func ReadGithubConfig(filePath string) (GithubConfig, error)

type GithubConfigApplication

type GithubConfigApplication struct {
	GithubAppIdentifier int64  `yaml:"github-app-identifier"`
	GithubPrivateKey    string `yaml:"github-private-key"`
	GithubWebhookSecret string `yaml:"github-webhook-secret"`
}

type GithubMiddleware

type GithubMiddleware struct {
	WebEvent interface{}
	Payload  interface{}
	// contains filtered or unexported fields
}

func NewGithubMiddleware

func NewGithubMiddleware(conf *GithubConfig) *GithubMiddleware

func (*GithubMiddleware) NewGithubInterface

func (mid *GithubMiddleware) NewGithubInterface() alice.Chain

Jump to

Keyboard shortcuts

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