Documentation
¶
Index ¶
Constants ¶
View Source
const CSVContentType = "text/csv"
Variables ¶
View Source
var ErrNoContent = errors.New("no content")
Functions ¶
This section is empty.
Types ¶
type AggregatedProject ¶
type AggregatedProject struct { ID string `rql:"name=id,type=string"` Name string `rql:"name=name,type=string"` Title string `rql:"name=title,type=string"` State project.State `rql:"name=state,type=string"` MemberCount int64 `rql:"name=member_count,type=number"` CreatedAt time.Time `rql:"name=created_at,type=datetime"` OrganizationID string `rql:"name=organization_id,type=string"` UserIDs []string }
type CSVExport ¶
type CSVExport struct { ProjectID string `csv:"Project ID"` Name string `csv:"Name"` Title string `csv:"Title"` State string `csv:"State"` MemberCount string `csv:"Member Count"` UserIDs string `csv:"User IDs"` CreatedAt string `csv:"Created At"` OrganizationID string `csv:"Organization ID"` }
CSVExport represents the structure for CSV export of organization projects
func NewCSVExport ¶
func NewCSVExport(project AggregatedProject) CSVExport
NewCSVExport converts AggregatedProject to CSVExport
func (CSVExport) GetHeaders ¶
GetHeaders returns the CSV headers based on struct tags
type OrgProjects ¶
type OrgProjects struct { Projects []AggregatedProject `json:"projects"` Group Group `json:"group"` Pagination Page `json:"pagination"` }
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repository Repository) *Service
Click to show internal directories.
Click to hide internal directories.