userprojects

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedProject

type AggregatedProject struct {
	ProjectID    string `rql:"name=project_id,type=string"`
	ProjectTitle string `rql:"name=project_title,type=string"`
	ProjectName  string `rql:"name=project_name,type=string"`
	CreatedOn    time.Time
	UserNames    []string
	UserTitles   []string
	UserIDs      []string
	UserAvatars  []string
	OrgID        string
	UserID       string
}

type Page

type Page struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
}

type Repository

type Repository interface {
	Search(ctx context.Context, userID string, orgID string, query *rql.Query) (UserProjects, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(repository Repository) *Service

func (Service) Search

func (s Service) Search(ctx context.Context, userID string, orgID string, query *rql.Query) (UserProjects, error)

type UserProjects

type UserProjects struct {
	Projects   []AggregatedProject `json:"projects"`
	Pagination Page                `json:"pagination"`
}

Jump to

Keyboard shortcuts

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