Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRegister = errors.New("register GitHub App from manifest failed") ErrRegistrationTimeout = errors.New("GitHub App is not registered before the timeout") )
Functions ¶
This section is empty.
Types ¶
type Flow ¶
type Flow struct {
// GitHub Appを登録する画面のURL(https://github.com/settings/apps/new等)
NewAppURL string
Manifest Manifest
// 待ち受けを開始した後に、manifestを送信するページのURLを受け取る
OnListening func(pageURL string)
// 待ち受けるポート(0の場合はOSが空いているポートを選ぶ)
ListenPort int
}
type HookAttributes ¶
type Manifest ¶
type Manifest struct {
Name string `json:"name"`
URL string `json:"url"`
HookAttributes HookAttributes `json:"hook_attributes"`
RedirectURL string `json:"redirect_url"`
Public bool `json:"public"`
DefaultPermissions map[string]string `json:"default_permissions"`
DefaultEvents []string `json:"default_events"`
}
Click to show internal directories.
Click to hide internal directories.