projectusers

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedUser

type AggregatedUser struct {
	ID              string     `rql:"name=id,type=string"`
	Name            string     `rql:"name=name,type=string"`
	Email           string     `rql:"name=email,type=string"`
	Title           string     `rql:"name=title,type=string"`
	State           user.State `rql:"name=state,type=string"`
	Avatar          string
	RoleNames       []string  `rql:"name=role_names,type=string"`
	RoleTitles      []string  `rql:"name=role_titles,type=string"`
	RoleIDs         []string  `rql:"name=role_ids,type=string"`
	ProjectID       string    `rql:"name=project_id,type=string"`
	ProjectJoinedAt time.Time `rql:"name=project_joined_at,type=datetime"`
}

type Page

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

type ProjectUsers

type ProjectUsers struct {
	Users      []AggregatedUser `json:"users"`
	Pagination Page             `json:"pagination"`
}

type Repository

type Repository interface {
	Search(ctx context.Context, projectID string, query *rql.Query) (ProjectUsers, 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, projectID string, query *rql.Query) (ProjectUsers, error)

Jump to

Keyboard shortcuts

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