service

package
v0.0.0-...-5e990d0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Broker    broker.Broker
	Client    client.Client
	Server    server.Server
	Registry  registry.Registry
	Selector  selector.Selector
	Transport transport.Transport

	// Register loop interval
	RegisterInterval time.Duration

	// Other options for implementations of the interface
	// can be stored in a context
	Context context.Context
	// contains filtered or unexported fields
}

func NewService

func NewService() *Service

func (*Service) BrokerOption

func (s *Service) BrokerOption(o ...broker.Option)
func (s *Service) RegistryOption(o ...registry.Option) {
	s.registryOpts = append(s.registryOpts, o...)
}
func (s *Service) TransportOption(o ...transport.Option) {
	s.transportOpts = append(s.transportOpts, o...)
}

func (*Service) ClientOption

func (s *Service) ClientOption(o ...client.Option)

func (*Service) CloseExit

func (s *Service) CloseExit()

func (*Service) Init

func (s *Service) Init()

Init initialises service.

func (*Service) Run

func (s *Service) Run()

func (*Service) SelectorOption

func (s *Service) SelectorOption(o ...selector.Option)

func (*Service) ServerOption

func (s *Service) ServerOption(o ...server.Option)

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

func (*Service) String

func (s *Service) String() string

Jump to

Keyboard shortcuts

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