Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v1.17.17 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(t *testing.T, fopts ...Option) *App

func (*App) Cleanup

func (a *App) Cleanup(t *testing.T)

func (*App) Port

func (a *App) Port() int

func (*App) Run

func (a *App) Run(t *testing.T, ctx context.Context)

func (*App) SetHealth added in v1.14.0

func (a *App) SetHealth(health bool)

type Option

type Option func(*options)

func WithConfig

func WithConfig(config string) Option

func WithHandlerFunc

func WithHandlerFunc(path string, fn nethttp.HandlerFunc) Option

func WithInitialHealth

func WithInitialHealth(initialHealth bool) Option

func WithSubscribe

func WithSubscribe(subscribe string) Option

Jump to

Keyboard shortcuts

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