test

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserID added in v1.27.0

func NewUserID() string

Types

type API

type API struct {
	InitializeMiddlewareInvocations int
	InitializeMiddlewareOutputs     []error
	InitializeRoutersInvocations    int
	InitializeRoutersInputs         [][]service.Router
	InitializeRoutersOutputs        []error
	StatusInvocations               int
	StatusOutputs                   []*rest.Status
	HandlerInvocations              int
	HandlerOutputs                  []http.Handler
}

func NewAPI

func NewAPI() *API

func (*API) Expectations

func (a *API) Expectations()

func (*API) Handler

func (a *API) Handler() http.Handler

func (*API) InitializeMiddleware

func (a *API) InitializeMiddleware() error

func (*API) InitializeRouters added in v1.29.0

func (a *API) InitializeRouters(routes ...service.Router) error

func (*API) Status

func (a *API) Status() *rest.Status

type Service

type Service struct {
	VersionReporterInvocations int
	VersionReporterImpl        version.Reporter
	ConfigReporterInvocations  int
	ConfigReporterImpl         *configTest.Reporter
	LoggerInvocations          int
	LoggerImpl                 log.Logger
	SecretInvocations          int
	SecretOutputs              []string
	AuthClientInvocations      int
	AuthClientImpl             *authTest.Client
}

func NewService

func NewService() *Service

func (*Service) AuthClient

func (s *Service) AuthClient() auth.Client

func (*Service) ConfigReporter

func (s *Service) ConfigReporter() config.Reporter

func (*Service) Expectations

func (s *Service) Expectations()

func (*Service) Logger

func (s *Service) Logger() log.Logger

func (*Service) Secret

func (s *Service) Secret() string

func (*Service) VersionReporter

func (s *Service) VersionReporter() version.Reporter

Jump to

Keyboard shortcuts

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