service

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallBackFunction

type CallBackFunction func(string, interface{})

type Service

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

Service contains the methods for the service instance

func Init

func Init(config *config.Config, service string) *Service

func (*Service) RegisterFunc

func (s *Service) RegisterFunc(funcName string, function ServiceFunction)

func (*Service) Start

func (s *Service) Start()

Start is used to start the particular service (is Blocking)

type ServiceFunction

type ServiceFunction func(*model.Message, *model.Message, CallBackFunction)

Jump to

Keyboard shortcuts

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