client

package
v1.69.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: BSD-3-Clause Imports: 6 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 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 {
	// API queue api
	API             client.QueueProtocolAPI
	CurrBlockHeight int64
	CurrBlockTime   int64
}

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