source

package
v0.0.0-...-d55254e Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListNetworkPushEvents(ctx context.Context, repo Repository) ([]PushEvent, error)
}

func ByName

func ByName(name string, config Config) (Client, error)

ByName returns a source.Client for a given name (e.g. github, gitlab, etc)

type Config

type Config struct {
	Github *GithubConfig
}

type GithubConfig

type GithubConfig struct {
	AuthToken string
}

type PushEvent

type PushEvent struct {
	RepoSlug  string
	Commits   []WebCommit
	CreatedAt time.Time
}

type Repository

type Repository struct {
	Owner, Name string // TODO(adam): defaults to Github
}

type WebCommit

type WebCommit struct {
	CommitURL string
	Message   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳