factory

package
v0.0.0-...-9b56418 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Option

type Option func(f *ServiceFactory)

Option an option to configure the Service Factory

type ServiceContextProducer

type ServiceContextProducer func() context.ServiceContext

ServiceContextProducer the service factory producer function

type ServiceFactory

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

ServiceFactory the service factory

func NewServiceFactory

func NewServiceFactory(producer ServiceContextProducer, config *configuration.ConfigurationData, options ...Option) *ServiceFactory

NewServiceFactory initializes a new factory with some options to use alternative implementation of the underlying services

func (*ServiceFactory) ClusterService

func (f *ServiceFactory) ClusterService() service.ClusterService

ClusterService returns a new cluster service implementation

Jump to

Keyboard shortcuts

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