in_port

package
v0.0.0-...-694eafd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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 MediaService interface {
	UploadMedia(mime_type string, bytes []byte) (string, error)
}

type ProjectCRUDService

type ProjectCRUDService interface {
	Create(project domain.Project) (string, error)
	Read(id string) domain.Project
	Update(project domain.Project) error
	Delete(project domain.Project) error
}

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 UserCRUDService

type UserCRUDService interface {
	Create(user domain.User) (string, error)
	Read(id string) 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

type UserProjectService interface {
	GetProjects(userID string) (domain.Projects, int64)
}

type UserResumeService

type UserResumeService interface {
	GetResumes(userID string) (domain.Resumes, int64)
}

User service for CRUD

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL