api

package
v0.0.0-...-00f2437 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIHandlers

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

APIHandlers sets up the handlers for API endpoints

func NewAPIHandlers

func NewAPIHandlers(ctx context.Context, logger golog.Logger, cfg config.Config) APIHandlers

NewAPIHandlers creates a new APIHandlers

func (APIHandlers) SetupRouter

func (a APIHandlers) SetupRouter(router *mux.Router)

SetupRouter registers API routes with the provided router

type HealthCheckHandler

type HealthCheckHandler struct{}

HealthCheckHandler implements http.ResponderHandler for the health check endpoint

func NewHealthCheckHandler

func NewHealthCheckHandler() HealthCheckHandler

NewHealthCheckHandler creates a new HealthCheckHandler

func (HealthCheckHandler) Handle

Handle implements resp.ResponderHandler.Handle

type IssuesHandler

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

IssuesHandler implements resp.ResponderHandler by returning a list of GitHub issues for a repository

func NewIssuesHandler

func NewIssuesHandler(ctx context.Context, logger golog.Logger, cfg config.Config) IssuesHandler

NewIssuesHandler creates a new IssuesHandler

func (IssuesHandler) Handle

func (h IssuesHandler) Handle(r *http.Request) resp.Responder

Handle implements resp.ResponderHandler.Handle

type IssuesRequest

type IssuesRequest struct {
	// RepositoryOwner is the repository's owner
	RepositoryOwner string `json:"repository_owner" validate:"nonzero"`

	// RepositoryName is the repository's name
	RepositoryName string `json:"repository_name" validate:"nonzero"`
}

IssuesRequest is the format of a issues request

type ReposHandler

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

ReposHandler implements resp.ResponderHandler by returning a list of GitHub repository names for a user

func NewReposHandler

func NewReposHandler(ctx context.Context, logger golog.Logger, cfg config.Config) ReposHandler

NewReposHandler creates a new ReposHandler

func (ReposHandler) Handle

func (h ReposHandler) Handle(r *http.Request) resp.Responder

Handle implements resp.ResponderHandler.Handle

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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