{"modulePath":"github.com/proshik/githubstatbot","version":"v0.0.0-20210927221415-fc364c1ba5fd","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\n## Types\n\n```go\ntype AccessTokenReq struct {\n\tClientId     string `json:\"client_id\"`\n\tClientSecret string `json:\"client_secret\"`\n\tCode         string `json:\"code\"`\n}\n```\n\n```go\ntype AccessTokenResp struct {\n\tAccessToken string `json:\"access_token\"`\n\tTokenType   string `json:\"token_type\"`\n\tScope       string `json:\"scope\"`\n}\n```\n\n```go\ntype BasicAuth struct {\n\tUsername string\n\tPassword string\n}\n```\n\n```go\ntype Handler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(\n\tOAuth *github.OAuth,\n\ttokenStore storage.AccessTokenStorage,\n\tstateStore *storage.StateStore,\n\tbot *telegram.Bot,\n\tbasicAuth *BasicAuth,\n\tstaticPath string) Handler\n```\n\n```go\nfunc (h *Handler) GitHubRedirect(w http.ResponseWriter, r *http.Request, _ httprouter.Params)\n```\n\n```go\nfunc (h *Handler) Index(w http.ResponseWriter, r *http.Request, p httprouter.Params)\n```\n\n```go\nfunc (h *Handler) RedirectToHttps(w http.ResponseWriter, r *http.Request)\n```\n\n```go\nfunc (h *Handler) Version(w http.ResponseWriter, r *http.Request, p httprouter.Params)\n```\n\n","path":"github.com/proshik/githubstatbot/api","name":"api","synopsis":"","isRedistributable":true}
