{"modulePath":"github.com/greboid/irc-github/v3","version":"v3.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Variables\n\n```go\nvar (\n\tRPCHost        = flag.String(\"rpc-host\", \"localhost\", \"gRPC server to connect to\")\n\tRPCPort        = flag.Int(\"rpc-port\", 8001, \"gRPC server port\")\n\tRPCToken       = flag.String(\"rpc-token\", \"\", \"gRPC authentication token\")\n\tChannel        = flag.String(\"channel\", \"\", \"Channel to send messages to\")\n\tPrivateChannel = flag.String(\"private-channel\", \"\", \"Channel to send messages to\")\n\tHidePrivate    = flag.Bool(\"hide-private\", false, \"Hide notifications about private repos\")\n\tGithubSecret   = flag.String(\"github-secret\", \"\", \"Github secret for validating webhooks\")\n\tDebug          = flag.Bool(\"debug\", false, \"Show debugging info\")\n)\n```\n\n## Functions\n\n```go\nfunc CheckGithubSecret(bodyBytes []byte, headerSecret string, githubSecret string) bool\n```\n\n## Types\n\n```go\ntype Author struct {\n\tUser string `json:\"username\"`\n}\n```\n\n```go\ntype Commit struct {\n\tID        string `json:\"id\"`\n\tMessage   string `json:\"message\"`\n\tURL       string `json:\"url\"`\n\tAuthor    Author `json:\"author\"`\n\tCommitter Author `json:\"committer\"`\n}\n```\n\n```go\ntype Issue struct {\n\tHtmlURL string `json:\"html_url\"`\n\tTitle   string `json:\"title\"`\n\tState   string `json:\"state\"`\n\tUser    User   `json:\"user\"`\n}\n```\n\n```go\ntype PullRequest struct {\n\tHtmlURL  string `json:\"html_url\"`\n\tUrl      string `json:\"url\"`\n\tState    string `json:\"state\"`\n\tTitle    string `json:\"title\"`\n\tBody     string `json:\"body\"`\n\tUser     User   `json:\"user\"`\n\tMerged   string `json:\"merged_at\"`\n\tMergedBy User   `json:\"merged_by\"`\n}\n```\n\n```go\ntype Pusher struct {\n\tName string `json:\"name\"`\n}\n```\n\n```go\ntype Repository struct {\n\tFullName  string `json:\"full_name\"`\n\tIsPrivate bool   `json:\"private\"`\n}\n```\n\n```go\ntype Sender struct {\n\tLogin string `json:\"login\"`\n}\n```\n\n```go\ntype User struct {\n\tLogin string `json:\"login\"`\n}\n```\n\n","path":"github.com/greboid/irc-github/v3/cmd/github","name":"main","synopsis":"","isRedistributable":true}
