client

package
v1.71.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package client 实现系统消息队列事件处理,新增client包避免循环引用

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() queue.Module

New new module

func RegisterCryptoHandler added in v1.70.0

func RegisterCryptoHandler(id int64, handler msgHandler)

RegisterCryptoHandler register handler

func RegisterSubInitFunc added in v1.70.0

func RegisterSubInitFunc(name string, initFunc subInitFunc)

RegisterSubInitFunc register sub module init func

func SetCurrentBlock

func SetCurrentBlock(blockHeight, blockTime int64)

SetCurrentBlock set block

func SetQueueAPI

func SetQueueAPI(api client.QueueProtocolAPI)

SetQueueAPI set api

Types

type CryptoContext

type CryptoContext struct {
	// CurrBlockHeight current height
	CurrBlockHeight int64
	// CurrBlockTime current block time
	CurrBlockTime int64
	// Client queue client
	Client queue.Client
	// API queue api
	API client.QueueProtocolAPI
	// Ctx context
	Ctx context.Context
}

CryptoContext system context for crypto

func GetCryptoContext

func GetCryptoContext() CryptoContext

GetCryptoContext get crypto ctx

Jump to

Keyboard shortcuts

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