fake

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package fake provides fake.ApplicationContext for unit testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationContext

type ApplicationContext struct {
}

ApplicationContext application context

func (*ApplicationContext) GetInstance added in v0.7.1

func (a *ApplicationContext) GetInstance(params ...interface{}) (instance interface{})

GetInstance get application instance by name

func (*ApplicationContext) GetProperty

func (a *ApplicationContext) GetProperty(name string) (value interface{}, ok bool)

GetProperty get application property by name

func (*ApplicationContext) RegisterController

func (a *ApplicationContext) RegisterController(controller interface{}) error

RegisterController register controller by interface

func (*ApplicationContext) Use

func (a *ApplicationContext) Use(handlers ...context.Handler)

Use use middleware

Jump to

Keyboard shortcuts

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