logic

package
v0.0.0-...-b8d73c3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Get() error
}

Interface

func New

func New(ctx context.Context) Interface

New

type Logic

type Logic struct {
	Context context.Context
	Self    Interface
}

func (Logic) Get

func (o Logic) Get() error

type Publish

type Publish struct {
	Context context.Context
	Self    PublishInterface
}

Publish struct

func (*Publish) PublishDataToMessageBroker

func (p *Publish) PublishDataToMessageBroker(keyPrefix string, data []byte) error

PublishDataToMessageBroker method for publish data to message broker

type PublishInterface

type PublishInterface interface {
	PublishDataToMessageBroker(keyPrefix string, data []byte) error
}

PublishInterface interface

func NewPublishLogic

func NewPublishLogic(ctx context.Context) PublishInterface

NewPublishLogic function for create Publish logic

Jump to

Keyboard shortcuts

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