woodpecker

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Host  string `json:"host"`
	Token string `json:"token"`
}

func NewServer

func NewServer(host string, token string) Server

NewServer returns a Server object for host

func (Server) GetStats

func (s Server) GetStats() (*Stats, error)

type Stats

type Stats struct {
	PendingJobs   int `json:"woodpecker_pending_jobs"`
	RunningJobs   int `json:"woodpecker_running_jobs"`
	IdlingWorkers int `json:"woodpecker_worker_count"`
}

Jump to

Keyboard shortcuts

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