session_registry

package
v0.0.0-...-9f5e8be Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRecentlyFailed = errors.New("dispatch recently failed, returning early")
)

Functions

This section is empty.

Types

type CachedSessionRegistryService

type CachedSessionRegistryService struct {
	// contains filtered or unexported fields
}

func (*CachedSessionRegistryService) GetNodesByChain

func (c *CachedSessionRegistryService) GetNodesByChain(chainId string) []*qos_models.QosNode

func (*CachedSessionRegistryService) GetNodesMap

func (*CachedSessionRegistryService) GetSession

type Session

type Session struct {
	IsValid       bool
	PocketSession *models.Session
	Nodes         []*qos_models.QosNode
}

type SessionRegistryService

type SessionRegistryService interface {
	GetSession(req *models.GetSessionRequest) (*Session, error)
	GetNodesMap() map[qos_models.SessionChainKey]*ttlcache.Item[qos_models.SessionChainKey, []*qos_models.QosNode]
	GetNodesByChain(chainId string) []*qos_models.QosNode
}

Jump to

Keyboard shortcuts

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