sync

package
v0.0.0-...-914df79 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package sync implements a system to fetch GitHub repositories concurrently.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(ctx context.Context, repositories []string, opts Options) error

Sync performs the synchronisation of repositories to the database provided in the options.

Types

type Options

type Options struct {
	DB    *ent.Client
	Full  bool
	Token string

	DebugHTTP bool
}

Options repsent the options to run Sync. These match the flags provided on the command line.

Jump to

Keyboard shortcuts

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