Documentation ¶
Index ¶
Constants ¶
View Source
const ( // permissions PERM_USER = "user" PERM_ADMIN = "admin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface { Generate(id string, expires time.Time, roles []string) (string, error) Validate(token string) (data_objects.AuthValidationResponseObject, error) IsAuthorized(id string, token string, roles ...string) bool }
user auth interface
type MediaService ¶
type ProjectCRUDService ¶
type ResumeCRUDService ¶
type ResumeCRUDService interface { Create(res domain.Resume) (string, error) Read(id string) domain.Resume Update(res domain.Resume) error Delete(res domain.Resume) error }
User service for CRUD
type SkillCRUDService ¶
type SkillCRUDService interface { Create(skill domain.Skill) (string, error) Read(id string) domain.Skill ReadAll(limit int64, offset int64, sort interface{}) domain.Skills Update(skill domain.Skill) error Delete(skill domain.Skill) error }
Skill service for CRUD
type UserCRUDService ¶
type UserCRUDService interface { Create(user domain.User) (string, error) Read(id string) domain.User ReadAll(limit int64, offset int64, sort interface{}) []domain.User Update(user domain.User) error Delete(user domain.User) error }
User service for CRUD
type UserLoginService ¶
type UserLoginService interface { Login(user domain.User) (domain.User, error) Signup(user domain.User) (string, error) }
user auth interface
type UserProjectService ¶
Click to show internal directories.
Click to hide internal directories.