api

package
v0.0.0-...-38af41f Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostJSON

func PostJSON(url string, payload []byte) (*http.Response, error)

PostJSON posts the structs as json to the specified url

func SetupRouter

func SetupRouter(webhookEnabled bool, workerEnabled bool, controllerEnabled bool)

SetupRouter initializes the API routes

Types

type ConfigCheckHandler

type ConfigCheckHandler struct {
	githubapp.ClientCreator
}

ConfigCheckHandler handles all comments on issues

func (*ConfigCheckHandler) Handle

func (h *ConfigCheckHandler) Handle(ctx context.Context, _, _ string, payload []byte) error

Handle has ALL the logic! ;)

func (*ConfigCheckHandler) Handles

func (h *ConfigCheckHandler) Handles() []string

Handles return list of events to listens to

type GithubInfo

type GithubInfo struct {
	RepoName string
	Owner    string
	Org      string
}
var Githubinfo GithubInfo

type WorkerPayload

type WorkerPayload struct {
	Org   string
	Repos []string
}

Jump to

Keyboard shortcuts

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