worker

package
v0.0.0-...-25a572b Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: BSD-3-Clause Imports: 48 Imported by: 0

Documentation

Overview

Package worker provides functionality for running a worker service.

Index

Constants

View Source
const (
	// ModeGovulncheck is an ecosystem metrics mode that runs the govulncheck
	// binary in default (source) mode.
	ModeGovulncheck = "GOVULNCHECK"

	// ModeCompare is an ecosystem metrics mode that finds compilable binaries
	// and runs govulncheck in both source and binary mode and reports results.
	ModeCompare = "COMPARE"
)

Variables

This section is empty.

Functions

func FormatTime

func FormatTime(t time.Time) string

Types

type GovulncheckServer

type GovulncheckServer struct {
	*Server
	// contains filtered or unexported fields
}

type Server

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

func NewServer

func NewServer(ctx context.Context, cfg *config.Config) (_ *Server, err error)

func (*Server) Info

func (s *Server) Info() string

Info summarizes Server execution as text.

Jump to

Keyboard shortcuts

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