types

package
v12.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "session"
)

Variables

View Source
var (
	ErrorInvalidMessage = sdkerrors.Register(ModuleName, 101, "invalid message")

	ErrorInvalidSessionStatus = sdkerrors.Register(ModuleName, 201, "invalid session status")
	ErrorInvalidSignature     = sdkerrors.Register(ModuleName, 202, "invalid signature")
	ErrorSessionNotFound      = sdkerrors.Register(ModuleName, 203, "session not found")
	ErrorUnauthorized         = sdkerrors.Register(ModuleName, 204, "unauthorized")
)
View Source
var (
	CountKey  = []byte{0x00}
	ParamsKey = []byte{0x01}

	SessionKeyPrefix                = []byte{0x10}
	SessionForAccountKeyPrefix      = []byte{0x11}
	SessionForAllocationKeyPrefix   = []byte{0x12}
	SessionForNodeKeyPrefix         = []byte{0x13}
	SessionForSubscriptionKeyPrefix = []byte{0x14}
	SessionForInactiveAtKeyPrefix   = []byte{0x15}
)

Functions

func GetSessionForAccountKeyPrefix

func GetSessionForAccountKeyPrefix(addr sdk.AccAddress) []byte

func GetSessionForAllocationKeyPrefix

func GetSessionForAllocationKeyPrefix(id uint64, addr sdk.AccAddress) []byte

func GetSessionForInactiveAtKeyPrefix

func GetSessionForInactiveAtKeyPrefix(at time.Time) []byte

func GetSessionForNodeKeyPrefix

func GetSessionForNodeKeyPrefix(addr base.NodeAddress) []byte

func GetSessionForSubscriptionKeyPrefix

func GetSessionForSubscriptionKeyPrefix(id uint64) []byte

func IDFromSessionForAccountKey

func IDFromSessionForAccountKey(key []byte) uint64

func IDFromSessionForAllocationKey

func IDFromSessionForAllocationKey(key []byte) uint64

func IDFromSessionForInactiveAtKey

func IDFromSessionForInactiveAtKey(key []byte) uint64

func IDFromSessionForNodeKey

func IDFromSessionForNodeKey(key []byte) uint64

func IDFromSessionForSubscriptionKey

func IDFromSessionForSubscriptionKey(key []byte) uint64

func NewErrorInvalidSessionStatus

func NewErrorInvalidSessionStatus(id uint64, status v1base.Status) error

func NewErrorInvalidSignature

func NewErrorInvalidSignature(signature []byte) error

func NewErrorSessionNotFound

func NewErrorSessionNotFound(id uint64) error

func NewErrorUnauthorized

func NewErrorUnauthorized(addr string) error

func SessionForAccountKey

func SessionForAccountKey(addr sdk.AccAddress, id uint64) []byte

func SessionForAllocationKey

func SessionForAllocationKey(subscriptionID uint64, addr sdk.AccAddress, sessionID uint64) []byte

func SessionForInactiveAtKey

func SessionForInactiveAtKey(at time.Time, id uint64) []byte

func SessionForNodeKey

func SessionForNodeKey(addr base.NodeAddress, id uint64) []byte

func SessionForSubscriptionKey

func SessionForSubscriptionKey(subscriptionID, sessionID uint64) []byte

func SessionKey

func SessionKey(id uint64) []byte

Types

This section is empty.

Directories

Path Synopsis
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.
Package v2 is a reverse proxy.
Package v2 is a reverse proxy.
Package v3 is a reverse proxy.
Package v3 is a reverse proxy.

Jump to

Keyboard shortcuts

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