{"modulePath":"github.com/GoProjectGroupForEducation/Go-Blog","version":"v0.0.0-20190118092757-cc686c7a0d74","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package services\n\n## Variables\n\n```go\nvar (\n\tSecretKey = []byte(\"awesome jwt nice to use\")\n)\n```\n\n## Functions\n\n```go\nfunc AuthenticationGuard(w http.ResponseWriter, req *http.Request, next utils.NextFunc) error\n```\n\n```go\nfunc GetCurrentUser(tokenStr string) *models.User\n```\n\n## Types\n\n```go\ntype CustomerClaims struct {\n\tUser *models.User\n\tjwt.StandardClaims\n}\n```\n\n```go\ntype Token struct {\n\tToken string `json:\"token\"`\n}\n```\n\n```go\nfunc GenerateAuthToken(user *models.User) Token\n```\n\n","path":"github.com/GoProjectGroupForEducation/Go-Blog/services","name":"services","synopsis":"","isRedistributable":true}
