context

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationContext

type ApplicationContext struct {
	Components    map[string]interface{}
	Configuration *config.CommonConfiguration
}

The context of goze application instance

func (*ApplicationContext) GetComponent

func (c *ApplicationContext) GetComponent(name string) interface{}

func (*ApplicationContext) Inject

func (c *ApplicationContext) Inject()

func (*ApplicationContext) With

func (c *ApplicationContext) With(component interface{}) *ApplicationContext

type Configer

type Configer interface {
	Config(cfg *config.CommonConfiguration) interface{}
}

type Controller

type Controller interface {
	//implement this yourself
	Mapping(server *server.RestServer)
}

Jump to

Keyboard shortcuts

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