queues

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 6 Imported by: 0

README

xxx

介绍
  1. xxxx
  2. xxxx
  3. xxxx
安装教程

go get github.com/jageros/hawox

使用例子
package main

import (
	"fmt"
	"github.com/jageros/hawox/xxx"
)

func main() {
	/*
	xxxxx
	xxxxx
	xxxxx
	*/
}
使用说明
  1. xxxx
  2. xxxx
  3. xxxx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type     string
	Addrs    string
	Topic    string
	GroupId  string
	WarnTime time.Duration
}

type IConsumer

type IConsumer interface {
	OnMessageHandler(f func(msg *pbf.QueueMsg))
}

func NewConsumer

func NewConsumer(ctx contextx.Context, opfs ...func(cfg *Config)) (IConsumer, error)

type IProducer

type IProducer interface {
	PushProtoMsg(msgId int32, arg interface{}, target *pbf.Target) error
	Push(msg *pbf.QueueMsg) error
}

func NewProducer

func NewProducer(ctx contextx.Context, opfs ...func(cfg *Config)) (IProducer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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