go-sdk/gitea
John Olheiser 321bd56d93 Add webhook verification funcs (#580)
This PR adds a func for verifying incoming webhooks from Gitea, as well as a middleware for easier addition to a router stack.

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/580
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Gusted <williamzijl7@hotmail.com>
2022-04-27 02:59:02 +08:00
..
admin_cron.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_org.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_repo.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_test.go Update length of cron tasks (#578) 2022-04-10 20:10:20 +08:00
admin_user.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
attachment.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
client.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
doc.go ask for go get from code.gitea.io/sdk/gitea 2016-11-11 21:52:21 +08:00
fork.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
git_blob.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
git_hook.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
go.mod Update dependencies (#575) 2022-03-29 09:16:23 +08:00
go.sum Update dependencies (#575) 2022-03-29 09:16:23 +08:00
helper.go Add Helper for Optional Values (#448) 2020-11-13 05:27:28 +08:00
hook.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
hook_validate.go Add webhook verification funcs (#580) 2022-04-27 02:59:02 +08:00
hook_validate_test.go Add webhook verification funcs (#580) 2022-04-27 02:59:02 +08:00
issue.go Update List Options (#527) 2021-07-01 19:39:50 +08:00
issue_comment.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_comment_test.go Add gitea-vet (#312) 2021-08-13 22:21:17 +08:00
issue_label.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_label_test.go Extend Label Test (#540) 2021-08-29 02:28:00 +08:00
issue_milestone.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
issue_milestone_test.go Milestone Functions accept name to identify (#418) 2020-09-15 16:29:24 +00:00
issue_reaction.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_stopwatch.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_subscription.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_subscription_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
issue_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
issue_tracked_time.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
list_options.go ListFunctions: option to disable pagination (#509) 2021-03-31 04:28:44 +08:00
main_test.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
notifications.go NotificationSubject: add HTMLURL fields (#548) 2021-10-14 16:24:30 +08:00
notifications_test.go Use goproxy.io instead of goproxy.cn (#574) 2022-03-29 07:09:57 +08:00
oauth2.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
oauth2_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
org.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
org_member.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
org_member_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
org_team.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
org_team_test.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
org_test.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
pull.go GetPullRequestDiff: add PullRequestDiffOptions param (#542) 2022-01-14 01:30:39 +08:00
pull_review.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
pull_review_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
pull_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
release.go Fix URL param (#568) 2022-02-15 23:14:18 +08:00
release_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
repo.go add mirror_updated field to Repository struct (#565) 2022-03-28 19:06:48 +08:00
repo_branch.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_branch_protection.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_branch_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
repo_collaborator.go Add GetReviewers & GetAssignees (#534) 2021-08-13 20:16:25 +08:00
repo_collaborator_test.go Use goproxy.io instead of goproxy.cn (#574) 2022-03-29 07:09:57 +08:00
repo_commit.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_commit_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_file.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_file_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
repo_key.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_migrate.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
repo_refs.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_stars.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_stars_test.go Add gitea-vet (#312) 2021-08-13 22:21:17 +08:00
repo_tag.go Add GetTag, GetAnnotatedTag & CreateTag (#533) 2021-08-13 20:27:52 +08:00
repo_tag_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
repo_team.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
repo_team_test.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
repo_template.go Add CreateRepoFromTemplate (#536) 2021-08-14 00:28:23 +08:00
repo_template_test.go Add CreateRepoFromTemplate (#536) 2021-08-14 00:28:23 +08:00
repo_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
repo_topics.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_topics_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_transfer.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_transfer_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
repo_tree.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_watch.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_watch_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
settings.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
settings_test.go Use goproxy.io instead of goproxy.cn (#574) 2022-03-29 07:09:57 +08:00
status.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
status_test.go Fix GetCombinedStatus() (#470) 2020-12-17 12:46:51 +08:00
user.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
user_app.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
user_email.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_follow.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_gpgkey.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_key.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_search.go Add GetUserByID (#513) 2021-04-05 11:23:50 +08:00
user_settings.go Add user settings get & update functions (#531) 2021-07-03 23:50:45 +08:00
user_settings_test.go Use goproxy.io instead of goproxy.cn (#574) 2022-03-29 07:09:57 +08:00
user_test.go Use goproxy.io instead of goproxy.cn (#574) 2022-03-29 07:09:57 +08:00
version.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
version_test.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00