web

package
v0.0.0-...-3c15615 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddr string `config:"LISTEN_ADDR"`

	DBURL  string `config:"DB_URL"`
	DBType string `config:"DB_TYPE"`

	// API related
	GHSecretKey    string `config:"GH_WEBHOOK_SECRET_KEY"`
	GHTimeout      string `config:"GH_WEBHOOK_TIMEOUT"`
	GHStarsRequire int    `config:"GH_STARS_REQUIRE"`
}

type GithubService

type GithubService struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) (ins *GithubService, err error)

func (*GithubService) GithubEvents

func (c *GithubService) GithubEvents(w http.ResponseWriter, r *http.Request)

func (*GithubService) Serve

func (c *GithubService) Serve() error

type Stats

type Stats struct {
	JobCount     int       `json:"job_count"`
	RepoCount    int       `json:"repo_count"`
	IdleBuilder  int       `json:"idle_builder"`
	TotalBuilder int       `json:"total_builder"`
	UpdatedAt    time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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