relaydebug

package
v3.0.0-...-9121f9c Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommit

func BuildCommit() string

BuildCommit reports the stamped vcs.revision according to debug.ReadBuildInfo, including a suffix indicating whether the working tree had uncommitted changes.

Note that this will report "unknown" if using "go run". Use "go build" to compile to a binary to see the proper commit reported.

func StartDebugServer

func StartDebugServer(ctx context.Context, log *zap.Logger, ln net.Listener)

StartDebugServer starts a debug server in a background goroutine, accepting connections on the given listener. Any HTTP logging will be written at info level to the given logger. The server will be forcefully shut down when ctx finishes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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