Help us shape the future of Go! Take the 2026 Go Developer Survey

dailyreport

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package dailyreport integrates daily report rules with GitSSS activity records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectPushes

func CollectPushes(ctx context.Context, start, end time.Time) ([]dailyreport.Push, error)

CollectPushes reads the actor's canonical action, avoiding watcher copies. Oversized or incomplete action payloads fail closed instead of omitting commits.

func ConfigPath

func ConfigPath() string

ConfigPath keeps private provider and recipient configuration in application data.

func Execute

func Execute(_ context.Context, _ time.Time, _ bool) (dailyreport.RunResult, error)

Execute refuses the retired global execution path.

func ExecuteOrganization added in v1.18.2

func ExecuteOrganization(ctx context.Context, orgID int64, now time.Time) (dailyreport.RunResult, error)

ExecuteOrganization runs one organization's scheduled report with isolated receipts.

func ExecuteOrganizations added in v1.18.2

func ExecuteOrganizations(ctx context.Context, now time.Time) error

ExecuteOrganizations runs configured organizations independently.

func LoadConfig

func LoadConfig() (dailyreport.Config, error)

LoadConfig returns a disabled default until an administrator configures the service.

func LoadOrgConfig added in v1.18.2

func LoadOrgConfig(orgID int64) (dailyreport.Config, error)

LoadOrgConfig reads only the selected organization's private settings.

func OrgMembers added in v1.18.2

func OrgMembers(ctx context.Context, orgID int64) ([]*user_model.User, error)

OrgMembers returns only current individual members, including private memberships.

func SaveConfig

func SaveConfig(cfg dailyreport.Config) error

SaveConfig validates and persists the private configuration.

func SaveOrgConfig added in v1.18.2

func SaveOrgConfig(orgID int64, cfg dailyreport.Config) error

Types

type Analysis added in v1.18.2

type Analysis struct{ Account, FullName, Summary string }

func AnalyzeOrganization added in v1.18.2

func AnalyzeOrganization(ctx context.Context, orgID int64, now time.Time, selection ManualSelection) ([]Analysis, error)

AnalyzeOrganization returns previews without sending or updating delivery receipts.

type ManualSelection added in v1.18.2

type ManualSelection struct {
	AccountIDs []int64
	RoleLabels []string
}

ManualSelection matches explicit members or any selected role; empty is rejected.

Jump to

Keyboard shortcuts

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