pkg

package
v0.0.0-...-e809d31 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5

func Md5(str string) string

Types

type Msg

type Msg struct {
	Id      int64  `json:"id"`
	Type    string `json:"type"`
	Message string `json:"message"`
}

type Producer

type Producer struct {
	Producer *nsq.Producer
}

func NewPublisher

func NewPublisher() (pro *Producer, err error)

func (*Producer) Produce

func (p *Producer) Produce(msg Msg) error

Jump to

Keyboard shortcuts

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