logic

package
v0.0.0-...-04961f1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consumers

func Consumers(ctx context.Context, svcCtx *svc.ServiceContext) []service.Service

Consumers 用于消费消息队列中的消息

Types

type ThumbupLogic

type ThumbupLogic struct {
	logx.Logger //嵌入的日志记录器
	// contains filtered or unexported fields
}

func NewThumbupLogic

func NewThumbupLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ThumbupLogic

NewThumbupLogic /*通过构造函数 NewThumbupLogic,可以确保 ThumbupLogic 结构体在创建时具备所有必要的依赖项和上下文信息*/

func (*ThumbupLogic) Consume

func (l *ThumbupLogic) Consume(key, val string) error

Consume ThumbupLogic 结构体的方法 (消息队列中获取的键和值)

Jump to

Keyboard shortcuts

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