hiboot: hidevops.io/hiboot/pkg/app/fake Index | Files

package fake

import "hidevops.io/hiboot/pkg/app/fake"

Package fake provides fake.ApplicationContext for unit testing

Index

Package Files

application.go

type ApplicationContext Uses

type ApplicationContext struct {
}

ApplicationContext application context

func (*ApplicationContext) GetInstance Uses

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

GetInstance get application instance by name

func (*ApplicationContext) GetProperty Uses

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

GetProperty get application property by name

func (*ApplicationContext) RegisterController Uses

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

RegisterController register controller by interface

func (*ApplicationContext) Use Uses

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

Use use middleware

Package fake imports 1 packages (graph). Updated 2019-05-20. Refresh now. Tools for package owners.