internal

package
v0.0.0-...-891ed02 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProducer

type IProducer interface {
	PublishMessage(data []byte) error
	CloseConn()
}

IProducer ...

type IServer

type IServer interface {
	ListenAndServe() error
}

IServer ...

type ServiceInterface

type ServiceInterface interface {
	Start() error
	Stop()
	PublishMessage([]byte) error
}

ServiceInterface ...

type WebhooksService

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

WebhooksService ...

func NewWebhooksService

func NewWebhooksService(server IServer, producer IProducer) *WebhooksService

NewWebhooksService ...

func (*WebhooksService) PublishMessage

func (s *WebhooksService) PublishMessage(data []byte) error

PublishMessage ...

func (*WebhooksService) Start

func (s *WebhooksService) Start() error

Start starts the service. Start will block.

func (*WebhooksService) Stop

func (s *WebhooksService) Stop()

Stop attempts to gracefully stop the service. It also closes any open connection that remains to the producer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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