service2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl1

type Impl1 struct {
	HelloServiceClient api.HelloServiceClient `grpc:"hello-service"`
}

+ioc:autowire=true +ioc:autowire:type=singleton

func GetImpl1Singleton

func GetImpl1Singleton() (*Impl1, error)

func (*Impl1) Hello

func (i *Impl1) Hello(name string) string

type Impl1IOCInterface

type Impl1IOCInterface interface {
	Hello(name string) string
}

func GetImpl1IOCInterfaceSingleton

func GetImpl1IOCInterfaceSingleton() (Impl1IOCInterface, error)

type Impl2

type Impl2 struct {
	HelloServiceClient api.HelloServiceClient `grpc:"hello-service"`
}

+ioc:autowire=true +ioc:autowire:type=singleton

func GetImpl2Singleton

func GetImpl2Singleton() (*Impl2, error)

func (*Impl2) Hello

func (i *Impl2) Hello(name string) string

type Impl2IOCInterface

type Impl2IOCInterface interface {
	Hello(name string) string
}

func GetImpl2IOCInterfaceSingleton

func GetImpl2IOCInterfaceSingleton() (Impl2IOCInterface, error)

type Service2

type Service2 interface {
	Hello(string) string
}

Jump to

Keyboard shortcuts

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