app

package
v0.0.0-...-3a05b22 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.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 App

type App struct {
	// inject main.ServiceImpl1 pointer to Service interface with proxy wrapper
	ServiceImpl1 ServiceImpl1IOCInterface `singleton:""`

	// inject main.ServiceImpl2 pointer to Service interface with proxy wrapper
	ServiceImpl2 ServiceImpl2IOCInterface `singleton:""`
}

func GetAppSingleton

func GetAppSingleton() (*App, error)

func (*App) Run

func (a *App) Run()

type AppIOCInterface

type AppIOCInterface interface {
	Run()
}

func GetAppIOCInterfaceSingleton

func GetAppIOCInterfaceSingleton() (AppIOCInterface, error)

type Service

type Service interface {
	GetHelloString(string) string
}

type ServiceImpl1

type ServiceImpl1 struct {
	ServiceImpl2 ServiceImpl2IOCInterface `singleton:""`
}

func GetServiceImpl1Singleton

func GetServiceImpl1Singleton() (*ServiceImpl1, error)

func (*ServiceImpl1) GetHelloString

func (s *ServiceImpl1) GetHelloString(name string) string

type ServiceImpl1IOCInterface

type ServiceImpl1IOCInterface interface {
	GetHelloString(name string) string
}

func GetServiceImpl1IOCInterfaceSingleton

func GetServiceImpl1IOCInterfaceSingleton() (ServiceImpl1IOCInterface, error)

type ServiceImpl2

type ServiceImpl2 struct {
}

func GetServiceImpl2Singleton

func GetServiceImpl2Singleton() (*ServiceImpl2, error)

func (*ServiceImpl2) GetHelloString

func (s *ServiceImpl2) GetHelloString(name string) string

type ServiceImpl2IOCInterface

type ServiceImpl2IOCInterface interface {
	GetHelloString(name string) string
}

func GetServiceImpl2IOCInterfaceSingleton

func GetServiceImpl2IOCInterfaceSingleton() (ServiceImpl2IOCInterface, error)

type ThisApp

type ThisApp struct {
}

func (*ThisApp) This

func (t *ThisApp) This() AppIOCInterface

type ThisServiceImpl1

type ThisServiceImpl1 struct {
}

func (*ThisServiceImpl1) This

type ThisServiceImpl2

type ThisServiceImpl2 struct {
}

func (*ThisServiceImpl2) This

Jump to

Keyboard shortcuts

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