handlers

package
v0.0.0-...-c6e3130 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsciiCat

func AsciiCat(cl *github.Client) http.Handler

func GetIssues

func GetIssues(cl *github.Client) http.Handler

func NewRouter

func NewRouter(ghClient *github.Client) http.Handler

NewRouter creates a new http.Handler that routes all valid HTTP paths to their respective handlers. It's best practice to register your handlers in a func like this so that you can test the resulting router (which itself is an http.Handler) directly.

See this function used in the TestGetIssuesTestSrv unit test found in get_issues_test.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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