transient

package
v0.1.104-coverage-brea... Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTransientService

func AddTransientService(builder *di.Builder)

GreeterAddTransientServiceService adds service to the DI container

func AddTransientService2

func AddTransientService2(builder *di.Builder)

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is used to implement helloworld.GreeterServer.

func GetTransientServiceFromContainer

func GetTransientServiceFromContainer(ctn di.Container) *Service

GetTransientServiceFromContainer from the Container

func (*Service) GetName

func (s *Service) GetName() string

SetName ...

func (*Service) SetName

func (s *Service) SetName(in string)

SetName ...

type Service2

type Service2 struct {
	// contains filtered or unexported fields
}

func GetTransientService2FromContainer

func GetTransientService2FromContainer(ctn di.Container) *Service2

GetTransientServiceFromContainer from the Container

func (*Service2) GetName

func (s *Service2) GetName() string

SetName ...

func (*Service2) SetName

func (s *Service2) SetName(in string)

SetName ...

Jump to

Keyboard shortcuts

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