gorouter: github.com/supiyun/gorouter/test Index | Files

package test

import "github.com/supiyun/gorouter/test"

Index

Package Files

app.go greet_app.go slow_app.go sticky_app.go websocket_app.go

type TestApp Uses

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

func NewGreetApp Uses

func NewGreetApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, tags map[string]string) *TestApp

func NewSlowApp Uses

func NewSlowApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, delay time.Duration) *TestApp

func NewStickyApp Uses

func NewStickyApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, tags map[string]string) *TestApp

func NewTestApp Uses

func NewTestApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, tags map[string]string) *TestApp

func NewWebSocketApp Uses

func NewWebSocketApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, delay time.Duration) *TestApp

func (*TestApp) AddHandler Uses

func (a *TestApp) AddHandler(path string, handler func(http.ResponseWriter, *http.Request))

func (*TestApp) CheckAppStatus Uses

func (a *TestApp) CheckAppStatus(status int) error

func (*TestApp) Endpoint Uses

func (a *TestApp) Endpoint() string

func (*TestApp) Listen Uses

func (a *TestApp) Listen()

func (*TestApp) Register Uses

func (a *TestApp) Register()

func (*TestApp) RegisterRepeatedly Uses

func (a *TestApp) RegisterRepeatedly(duration time.Duration)

func (*TestApp) Unregister Uses

func (a *TestApp) Unregister()

func (*TestApp) Urls Uses

func (a *TestApp) Urls() []route.Uri

func (*TestApp) VerifyAppStatus Uses

func (a *TestApp) VerifyAppStatus(status int)

Package test imports 14 packages (graph). Updated 2017-10-12. Refresh now. Tools for package owners.