Documentation ¶ Index ¶ func Invalidate(token string) type User func Validate(token string) (*User, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Invalidate ¶ func Invalidate(token string) Invalidate invalida un token del cache Types ¶ type User ¶ type User struct { ID string `json:"id" validate:"required"` Name string `json:"name" validate:"required"` Permissions []string `json:"permissions"` Login string `json:"login" validate:"required"` } User es el usuario logueado func Validate ¶ func Validate(token string) (*User, error) Validate valida si el token es valido Source Files ¶ View all Source files dao.go service.go Click to show internal directories. Click to hide internal directories.