Versions in this module Expand all Collapse all v0 v0.1.0 Nov 19, 2026 Changes in this version + const DefaultMaxLookback + var JSONSchema string + var OrgColumn = schema.Column + var RepositoryIDColumn = schema.Column + func Discover(ctx context.Context, logger zerolog.Logger, clients *Clients, spec Spec) (map[string][]*github.Repository, error) + func Drain[T any](ctx context.Context, seq iter.Seq2[T, error], res chan<- any) error + func GenerateSchema() ([]byte, error) + func IsNoAccess(err error) (status int, ok bool) + func OrgMultiplex(meta schema.ClientMeta) []schema.ClientMeta + func OrgRepositoryMultiplex(meta schema.ClientMeta) []schema.ClientMeta + func RegisterTablePermission(table, permission string) + func SkipOnNoAccess(table, permission string, notFoundIsNoAccess bool, r schema.TableResolver) schema.TableResolver + func TablePermission(table string) (string, bool) + func TransformWithStruct(t any, opts ...transformers.StructTransformerOption) schema.Transform + type AppAuthSpec struct + AppID string + InstallationID string + Org string + PrivateKey string + PrivateKeyPath string + func (AppAuthSpec) JSONSchemaExtend(s *jsonschema.Schema) + type Client struct + GitHub *github.Client + Org string + Repository *github.Repository + Spec Spec + State *StateStore + func New(ctx context.Context, logger zerolog.Logger, spec Spec) (*Client, error) + func (c *Client) ID() string + func (c *Client) IsApp() bool + func (c *Client) LogSkipSummary() + func (c *Client) Logger() *zerolog.Logger + func (c *Client) ParentGone(table, parentField string, parentID int64) + func (c *Client) WithState(s *StateStore) *Client + type Clients struct + func NewClients(logger zerolog.Logger, spec Spec) (*Clients, error) + func (c *Clients) ForOrg(org string) *github.Client + func (c *Clients) IsApp(org string) bool + type EnterpriseSettings struct + BaseURL string + UploadURL string + func (EnterpriseSettings) JSONSchemaExtend(s *jsonschema.Schema) + type Spec struct + AccessToken string + AppAuth []AppAuthSpec + Concurrency int + DiscoveryConcurrency int + Enterprise *EnterpriseSettings + IncludeArchivedRepos bool + LocalCachePath string + Orgs []string + Repos []string + TableOptions TableOptions + func (Spec) JSONSchemaExtend(s *jsonschema.Schema) + func (s *Spec) SetDefaults() + func (s *Spec) Validate() error + type StateStore struct + func NewStateStore(backend state.Client, enabled bool) *StateStore + func (s *StateStore) Enabled() bool + func (s *StateStore) Get(ctx context.Context, key string) (string, error) + func (s *StateStore) Mutate(ctx context.Context, key string, fn func(current string) (string, error)) error + func (s *StateStore) Save(ctx context.Context) error + type TableOptions struct + WorkflowRuns WorkflowRunsOptions + type WorkflowRunsOptions struct + CreatedSince string + CreatedSinceTime time.Time + MaxLookback string + MaxLookbackDuration time.Duration