session

package
v0.0.0-...-c3ce9eb Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheSession

type CacheSession map[string]SessionIfo

type Session

type Session struct {
	ID        string
	SessionDB //node节点数据库接口
	PDR       CreatePDR
	FAR       CreateFAR
	URR       CreateURR
	QER       CreateQER
	Precedence
}

func (Session) Insert

func (cs Session) Insert(s Session)

type SessionDB

type SessionDB interface {
	Insert(ElemInfo) error
	Remove(elem.NodeID) error
	IsExist(elem.NodeID) (bool, error)
	GetLocalNode(elem.NodeID) (elem.NodeID, error)
	GetRemoteNode(elem.NodeID) (elem.NodeID, error)
	GetLocalRecoveryTimeStamp(elem.NodeID) (elem.RecoveryTimeStamp, error)
	GetRemoteRecoveryTimeStamp(elem.NodeID) (elem.RecoveryTimeStamp, error)
}

type SessionInfo

type SessionInfo struct {
	NodeInfo   node.NodeInfo
	LocalSEID  []byte
	RemoteSEID []byte
}

Jump to

Keyboard shortcuts

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