Documentation ¶
Index ¶
- Variables
- func NewSearchKnowledgeBase(service *EmbeddingService) functions.ChatFunctionDefinition
- type AuthLogService
- func (s *AuthLogService) Count(ctx context.Context) (int64, error)
- func (s *AuthLogService) Create(ctx context.Context, data *authlog.AuthenticationLog) error
- func (s *AuthLogService) Delete(ctx context.Context, id int64) error
- func (s *AuthLogService) GetAll(ctx context.Context) ([]*authlog.AuthenticationLog, error)
- func (s *AuthLogService) GetByID(ctx context.Context, id int64) (*authlog.AuthenticationLog, error)
- func (s *AuthLogService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*authlog.AuthenticationLog, error)
- func (s *AuthLogService) Update(ctx context.Context, data *authlog.AuthenticationLog) error
- type AuthService
- func (s *AuthService) Authenticate(ctx context.Context, email, password string) (*user.User, *session.Session, error)
- func (s *AuthService) AuthenticateGoogle(ctx context.Context, code string) (*user.User, *session.Session, error)
- func (s *AuthService) AuthenticateWithUserId(ctx context.Context, id uint, password string) (*user.User, *session.Session, error)
- func (s *AuthService) Authorize(ctx context.Context, token string) (*user.User, *session.Session, error)
- func (s *AuthService) CoockieAuthenticateWithUserId(ctx context.Context, id uint, password string) (*http.Cookie, error)
- func (s *AuthService) CookieAuthenticate(ctx context.Context, email, password string) (*http.Cookie, error)
- func (s *AuthService) GoogleAuthenticate() (string, error)
- func (s *AuthService) Logout(ctx context.Context, token string) error
- func (s *AuthService) OauthGoogleCallback(w http.ResponseWriter, r *http.Request)
- type CurrencyService
- func (s *CurrencyService) Create(ctx context.Context, data *currency.CreateDTO) error
- func (s *CurrencyService) Delete(ctx context.Context, id uint) (*currency.Currency, error)
- func (s *CurrencyService) GetAll(ctx context.Context) ([]*currency.Currency, error)
- func (s *CurrencyService) GetByID(ctx context.Context, id uint) (*currency.Currency, error)
- func (s *CurrencyService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*currency.Currency, error)
- func (s *CurrencyService) Update(ctx context.Context, data *currency.UpdateDTO) error
- type DialogueService
- func (s *DialogueService) ChatComplete(ctx context.Context, data *dialogue.Dialogue, model string) error
- func (s *DialogueService) Count(ctx context.Context) (int64, error)
- func (s *DialogueService) Delete(ctx context.Context, id int64) (*dialogue.Dialogue, error)
- func (s *DialogueService) GetAll(ctx context.Context) ([]*dialogue.Dialogue, error)
- func (s *DialogueService) GetByID(ctx context.Context, id int64) (*dialogue.Dialogue, error)
- func (s *DialogueService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*dialogue.Dialogue, error)
- func (s *DialogueService) GetUserDialogues(ctx context.Context, userID int64) ([]*dialogue.Dialogue, error)
- func (s *DialogueService) ReplyToDialogue(ctx context.Context, dialogueID int64, message, model string) (*dialogue.Dialogue, error)
- func (s *DialogueService) StartDialogue(ctx context.Context, message string, model string) (*dialogue.Dialogue, error)
- func (s *DialogueService) Update(ctx context.Context, data *dialogue.Dialogue) error
- type EmbeddingService
- type EmployeeService
- func (s *EmployeeService) Count(ctx context.Context) (int64, error)
- func (s *EmployeeService) Create(ctx context.Context, data *employee.CreateDTO) error
- func (s *EmployeeService) Delete(ctx context.Context, id uint) (*employee.Employee, error)
- func (s *EmployeeService) GetAll(ctx context.Context) ([]*employee.Employee, error)
- func (s *EmployeeService) GetByID(ctx context.Context, id uint) (*employee.Employee, error)
- func (s *EmployeeService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*employee.Employee, error)
- func (s *EmployeeService) Update(ctx context.Context, id uint, data *employee.UpdateDTO) error
- type PositionService
- func (s *PositionService) Count(ctx context.Context) (int64, error)
- func (s *PositionService) Create(ctx context.Context, data *position.Position) error
- func (s *PositionService) Delete(ctx context.Context, id int64) error
- func (s *PositionService) GetAll(ctx context.Context) ([]*position.Position, error)
- func (s *PositionService) GetByID(ctx context.Context, id int64) (*position.Position, error)
- func (s *PositionService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*position.Position, error)
- func (s *PositionService) Update(ctx context.Context, data *position.Position) error
- type ProjectService
- func (s *ProjectService) Create(ctx context.Context, data *project.CreateDTO) error
- func (s *ProjectService) Delete(ctx context.Context, id uint) (*project.Project, error)
- func (s *ProjectService) GetAll(ctx context.Context) ([]*project.Project, error)
- func (s *ProjectService) GetByID(ctx context.Context, id uint) (*project.Project, error)
- func (s *ProjectService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*project.Project, error)
- func (s *ProjectService) Update(ctx context.Context, id uint, data *project.UpdateDTO) error
- type ProjectStageService
- func (s *ProjectStageService) Count(ctx context.Context) (uint, error)
- func (s *ProjectStageService) Create(ctx context.Context, data *stage.CreateDTO) error
- func (s *ProjectStageService) Delete(ctx context.Context, id uint) (*stage.ProjectStage, error)
- func (s *ProjectStageService) GetAll(ctx context.Context) ([]*stage.ProjectStage, error)
- func (s *ProjectStageService) GetByID(ctx context.Context, id uint) (*stage.ProjectStage, error)
- func (s *ProjectStageService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*stage.ProjectStage, error)
- func (s *ProjectStageService) Update(ctx context.Context, id uint, data *stage.UpdateDTO) error
- type PromptService
- func (s *PromptService) Count(ctx context.Context) (int64, error)
- func (s *PromptService) Create(ctx context.Context, data *prompt.Prompt) error
- func (s *PromptService) Delete(ctx context.Context, id int64) error
- func (s *PromptService) GetAll(ctx context.Context) ([]*prompt.Prompt, error)
- func (s *PromptService) GetByID(ctx context.Context, id string) (*prompt.Prompt, error)
- func (s *PromptService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*prompt.Prompt, error)
- func (s *PromptService) Update(ctx context.Context, data *prompt.Prompt) error
- type RoleService
- func (s *RoleService) Count(ctx context.Context) (int64, error)
- func (s *RoleService) Create(ctx context.Context, data *role.Role) error
- func (s *RoleService) Delete(ctx context.Context, id int64) error
- func (s *RoleService) GetAll(ctx context.Context) ([]*role.Role, error)
- func (s *RoleService) GetByID(ctx context.Context, id int64) (*role.Role, error)
- func (s *RoleService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*role.Role, error)
- func (s *RoleService) Update(ctx context.Context, data *role.Role) error
- type SessionService
- func (s *SessionService) Create(ctx context.Context, data *session.CreateDTO) error
- func (s *SessionService) Delete(ctx context.Context, id int64) error
- func (s *SessionService) GetAll(ctx context.Context) ([]*session.Session, error)
- func (s *SessionService) GetByToken(ctx context.Context, id string) (*session.Session, error)
- func (s *SessionService) GetCount(ctx context.Context) (int64, error)
- func (s *SessionService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*session.Session, error)
- func (s *SessionService) Update(ctx context.Context, data *session.Session) error
- type UhrProps
- type UhrService
- type UploadService
- func (s *UploadService) Create(ctx context.Context, data *upload.CreateDTO) (*upload.Upload, error)
- func (s *UploadService) Delete(ctx context.Context, id uint) (*upload.Upload, error)
- func (s *UploadService) GetAll(ctx context.Context) ([]*upload.Upload, error)
- func (s *UploadService) GetByHash(ctx context.Context, hash string) (*upload.Upload, error)
- func (s *UploadService) GetByID(ctx context.Context, id uint) (*upload.Upload, error)
- func (s *UploadService) Update(ctx context.Context, id uint, data *upload.UpdateDTO) error
- type UserService
- func (s *UserService) Count(ctx context.Context) (int64, error)
- func (s *UserService) Create(ctx context.Context, data *user.User) error
- func (s *UserService) Delete(ctx context.Context, id uint) (*user.User, error)
- func (s *UserService) GetAll(ctx context.Context) ([]*user.User, error)
- func (s *UserService) GetByEmail(ctx context.Context, email string) (*user.User, error)
- func (s *UserService) GetByID(ctx context.Context, id uint) (*user.User, error)
- func (s *UserService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*user.User, error)
- func (s *UserService) Update(ctx context.Context, data *user.User) error
- func (s *UserService) UpdateLastAction(ctx context.Context, id uint) error
- func (s *UserService) UpdateLastLogin(ctx context.Context, id uint) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMessageTooLong = errors.New("message is too long") ErrModelRequired = errors.New("model is required") )
Functions ¶
func NewSearchKnowledgeBase ¶
func NewSearchKnowledgeBase(service *EmbeddingService) functions.ChatFunctionDefinition
Types ¶
type AuthLogService ¶
type AuthLogService struct {
// contains filtered or unexported fields
}
func NewAuthLogService ¶
func NewAuthLogService(repo authlog.Repository, publisher event.Publisher) *AuthLogService
func (*AuthLogService) Create ¶
func (s *AuthLogService) Create(ctx context.Context, data *authlog.AuthenticationLog) error
func (*AuthLogService) Delete ¶
func (s *AuthLogService) Delete(ctx context.Context, id int64) error
func (*AuthLogService) GetAll ¶
func (s *AuthLogService) GetAll(ctx context.Context) ([]*authlog.AuthenticationLog, error)
func (*AuthLogService) GetByID ¶
func (s *AuthLogService) GetByID(ctx context.Context, id int64) (*authlog.AuthenticationLog, error)
func (*AuthLogService) GetPaginated ¶
func (s *AuthLogService) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*authlog.AuthenticationLog, error)
func (*AuthLogService) Update ¶
func (s *AuthLogService) Update(ctx context.Context, data *authlog.AuthenticationLog) error
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(app application.Application) *AuthService
func (*AuthService) Authenticate ¶
func (*AuthService) AuthenticateGoogle ¶
func (*AuthService) AuthenticateWithUserId ¶
func (*AuthService) CoockieAuthenticateWithUserId ¶
func (*AuthService) CookieAuthenticate ¶
func (*AuthService) GoogleAuthenticate ¶
func (s *AuthService) GoogleAuthenticate() (string, error)
func (*AuthService) OauthGoogleCallback ¶
func (s *AuthService) OauthGoogleCallback(w http.ResponseWriter, r *http.Request)
type CurrencyService ¶
type CurrencyService struct { Repo currency.Repository Publisher event.Publisher }
func NewCurrencyService ¶
func NewCurrencyService(repo currency.Repository, publisher event.Publisher) *CurrencyService
func (*CurrencyService) GetPaginated ¶
type DialogueService ¶
type DialogueService struct {
// contains filtered or unexported fields
}
func NewDialogueService ¶
func NewDialogueService(repo dialogue.Repository, app application.Application) *DialogueService
func (*DialogueService) ChatComplete ¶
func (*DialogueService) GetPaginated ¶
func (*DialogueService) GetUserDialogues ¶
func (*DialogueService) ReplyToDialogue ¶
func (*DialogueService) StartDialogue ¶
type EmbeddingService ¶
type EmbeddingService struct {
// contains filtered or unexported fields
}
func NewEmbeddingService ¶
func NewEmbeddingService(app application.Application) *EmbeddingService
func (*EmbeddingService) Search ¶
func (s *EmbeddingService) Search(ctx context.Context, query string) ([]*embedding.SearchResult, error)
type EmployeeService ¶
type EmployeeService struct {
// contains filtered or unexported fields
}
func NewEmployeeService ¶
func NewEmployeeService(repo employee.Repository, publisher event.Publisher) *EmployeeService
func (*EmployeeService) GetPaginated ¶
type PositionService ¶
type PositionService struct {
// contains filtered or unexported fields
}
func NewPositionService ¶
func NewPositionService(repo position.Repository, publisher event.Publisher) *PositionService
func (*PositionService) Delete ¶
func (s *PositionService) Delete(ctx context.Context, id int64) error
func (*PositionService) GetPaginated ¶
type ProjectService ¶
type ProjectService struct {
// contains filtered or unexported fields
}
func NewProjectService ¶
func NewProjectService(repo project.Repository, publisher event.Publisher) *ProjectService
func (*ProjectService) GetPaginated ¶
type ProjectStageService ¶
type ProjectStageService struct {
// contains filtered or unexported fields
}
func NewProjectStageService ¶
func NewProjectStageService(repo stage.Repository, publisher event.Publisher) *ProjectStageService
func (*ProjectStageService) Count ¶
func (s *ProjectStageService) Count(ctx context.Context) (uint, error)
func (*ProjectStageService) Delete ¶
func (s *ProjectStageService) Delete(ctx context.Context, id uint) (*stage.ProjectStage, error)
func (*ProjectStageService) GetAll ¶
func (s *ProjectStageService) GetAll(ctx context.Context) ([]*stage.ProjectStage, error)
func (*ProjectStageService) GetByID ¶
func (s *ProjectStageService) GetByID(ctx context.Context, id uint) (*stage.ProjectStage, error)
func (*ProjectStageService) GetPaginated ¶
func (s *ProjectStageService) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*stage.ProjectStage, error)
type PromptService ¶
type PromptService struct {
// contains filtered or unexported fields
}
func NewPromptService ¶
func NewPromptService(repo prompt.Repository, publisher event.Publisher) *PromptService
func (*PromptService) GetPaginated ¶
type RoleService ¶
type RoleService struct {
// contains filtered or unexported fields
}
func NewRoleService ¶
func NewRoleService(repo role.Repository, publisher event.Publisher) *RoleService
func (*RoleService) GetPaginated ¶
type SessionService ¶
type SessionService struct {
// contains filtered or unexported fields
}
func NewSessionService ¶
func NewSessionService(repo session.Repository, publisher event.Publisher) *SessionService
func (*SessionService) Delete ¶
func (s *SessionService) Delete(ctx context.Context, id int64) error
func (*SessionService) GetByToken ¶
func (*SessionService) GetCount ¶
func (s *SessionService) GetCount(ctx context.Context) (int64, error)
func (*SessionService) GetPaginated ¶
type UhrProps ¶
type UhrProps struct { Entities []costcomponent.BillableHourEntity ExpenseComponents []costcomponent.ExpenseComponent }
type UhrService ¶
type UhrService struct { }
func NewUhrService ¶
func NewUhrService() *UhrService
func (*UhrService) Calculate ¶
func (s *UhrService) Calculate(props *UhrProps) []costcomponent.UnifiedHourlyRateResult
func (*UhrService) CalculateStaffExpenses ¶
func (s *UhrService) CalculateStaffExpenses(employees []*employee.Employee, settings *settings.Settings)
type UploadService ¶
type UploadService struct {
// contains filtered or unexported fields
}
func NewUploadService ¶
func NewUploadService( repo upload.Repository, storage upload.Storage, publisher event.Publisher, ) *UploadService
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo user.Repository, publisher event.Publisher) *UserService
func (*UserService) GetByEmail ¶
func (*UserService) GetPaginated ¶
func (*UserService) UpdateLastAction ¶
func (s *UserService) UpdateLastAction(ctx context.Context, id uint) error
func (*UserService) UpdateLastLogin ¶
func (s *UserService) UpdateLastLogin(ctx context.Context, id uint) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.