webhook

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubEvent

type GitHubEvent struct {
	Repository *GitHubRepository `json:"repository"`
	Sender     *GitHubUser       `json:"sender"`
}

func ParseGitHubEvent

func ParseGitHubEvent(payload []byte) (*GitHubEvent, error)

type GitHubRepository

type GitHubRepository struct {
	Name  string      `json:"name"`
	Owner *GitHubUser `json:"owner"`
}

type GitHubUser

type GitHubUser struct {
	// Sometimes we have 'login', other times we have 'name'.
	Login string `json:"login"`
	Name  string `json:"name"`
}

Jump to

Keyboard shortcuts

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