Documentation ¶
Index ¶
- Constants
- Variables
- func GetSessionForAccountKeyPrefix(addr sdk.AccAddress) []byte
- func GetSessionForAllocationKeyPrefix(id uint64, addr sdk.AccAddress) []byte
- func GetSessionForInactiveAtKeyPrefix(at time.Time) []byte
- func GetSessionForNodeKeyPrefix(addr base.NodeAddress) []byte
- func GetSessionForSubscriptionKeyPrefix(id uint64) []byte
- func IDFromSessionForAccountKey(key []byte) uint64
- func IDFromSessionForAllocationKey(key []byte) uint64
- func IDFromSessionForInactiveAtKey(key []byte) uint64
- func IDFromSessionForNodeKey(key []byte) uint64
- func IDFromSessionForSubscriptionKey(key []byte) uint64
- func NewErrorInvalidSessionStatus(id uint64, status v1base.Status) error
- func NewErrorInvalidSignature(signature []byte) error
- func NewErrorSessionNotFound(id uint64) error
- func NewErrorUnauthorized(addr string) error
- func SessionForAccountKey(addr sdk.AccAddress, id uint64) []byte
- func SessionForAllocationKey(subscriptionID uint64, addr sdk.AccAddress, sessionID uint64) []byte
- func SessionForInactiveAtKey(at time.Time, id uint64) []byte
- func SessionForNodeKey(addr base.NodeAddress, id uint64) []byte
- func SessionForSubscriptionKey(subscriptionID, sessionID uint64) []byte
- func SessionKey(id uint64) []byte
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") )
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 GetSessionForNodeKeyPrefix ¶
func GetSessionForNodeKeyPrefix(addr base.NodeAddress) []byte
func IDFromSessionForNodeKey ¶
func NewErrorSessionNotFound ¶
func NewErrorUnauthorized ¶
func SessionForAccountKey ¶
func SessionForAccountKey(addr sdk.AccAddress, id uint64) []byte
func SessionForAllocationKey ¶
func SessionForAllocationKey(subscriptionID uint64, addr sdk.AccAddress, sessionID uint64) []byte
func SessionForNodeKey ¶
func SessionForNodeKey(addr base.NodeAddress, id uint64) []byte
func SessionKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.