Documentation
¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/sentinel-official/hub/x/vpn/types/ ALIASGEN: github.com/sentinel-official/hub/x/vpn/keeper/ ALIASGEN: github.com/sentinel-official/hub/x/vpn/querier/
Index ¶
- Constants
- Variables
- func EndBlock(ctx sdk.Context, k keeper.Keeper)
- func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState)
- func NewHandler(k keeper.Keeper) sdk.Handler
- func ValidateGenesis(data types.GenesisState) error
- type AppModule
- func (a AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (a AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (a AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (a AppModule) NewHandler() sdk.Handler
- func (a AppModule) NewQuerierHandler() sdk.Querier
- func (a AppModule) QuerierRoute() string
- func (a AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (a AppModule) Route() string
- type AppModuleBasic
- func (a AppModuleBasic) DefaultGenesis() json.RawMessage
- func (a AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (a AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (a AppModuleBasic) Name() string
- func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (a AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)
- func (a AppModuleBasic) ValidateGenesis(data json.RawMessage) error
- type GenesisState
- type Keeper
- type MsgDeregisterNode
- type MsgEndSubscription
- type MsgRegisterNode
- type MsgStartSubscription
- type MsgUpdateNodeInfo
- type MsgUpdateSessionInfo
- type Node
- type Params
- type QueryNodeParams
- type QueryNodesOfAddressPrams
- type QuerySessionOfSubscriptionPrams
- type QuerySessionParams
- type QuerySessionsCountOfSubscriptionParams
- type QuerySessionsOfSubscriptionPrams
- type QuerySubscriptionParams
- type QuerySubscriptionsOfAddressParams
- type QuerySubscriptionsOfNodePrams
- type Session
- type Subscription
Constants ¶
View Source
const ( Codespace = types.Codespace ModuleName = types.ModuleName QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey StoreKeySession = types.StoreKeySession StoreKeyNode = types.StoreKeyNode StoreKeySubscription = types.StoreKeySubscription StatusRegistered = types.StatusRegistered StatusActive = types.StatusActive StatusInactive = types.StatusInactive StatusDeRegistered = types.StatusDeRegistered QueryNode = types.QueryNode QueryNodesOfAddress = types.QueryNodesOfAddress QueryAllNodes = types.QueryAllNodes QuerySubscription = types.QuerySubscription QuerySubscriptionsOfNode = types.QuerySubscriptionsOfNode QuerySubscriptionsOfAddress = types.QuerySubscriptionsOfAddress QueryAllSubscriptions = types.QueryAllSubscriptions QuerySessionsCountOfSubscription = types.QuerySessionsCountOfSubscription QuerySession = types.QuerySession QuerySessionOfSubscription = types.QuerySessionOfSubscription QuerySessionsOfSubscription = types.QuerySessionsOfSubscription QueryAllSessions = types.QueryAllSessions DefaultParamspace = keeper.DefaultParamspace )
Variables ¶
View Source
var ( // functions aliases RegisterCodec = types.RegisterCodec ErrorMarshal = types.ErrorMarshal ErrorUnmarshal = types.ErrorUnmarshal ErrorUnknownMsgType = types.ErrorUnknownMsgType ErrorInvalidQueryType = types.ErrorInvalidQueryType ErrorInvalidField = types.ErrorInvalidField ErrorNodeDoesNotExist = types.ErrorNodeDoesNotExist ErrorInvalidNodeStatus = types.ErrorInvalidNodeStatus ErrorInvalidDeposit = types.ErrorInvalidDeposit ErrorSubscriptionDoesNotExist = types.ErrorSubscriptionDoesNotExist ErrorSubscriptionAlreadyExists = types.ErrorSubscriptionAlreadyExists ErrorInvalidSubscriptionStatus = types.ErrorInvalidSubscriptionStatus ErrorInvalidBandwidth = types.ErrorInvalidBandwidth ErrorInvalidBandwidthSignature = types.ErrorInvalidBandwidthSignature ErrorSessionAlreadyExists = types.ErrorSessionAlreadyExists ErrorInvalidSessionStatus = types.ErrorInvalidSessionStatus NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState NodeKey = types.NodeKey NodesCountOfAddressKey = types.NodesCountOfAddressKey NodeIDByAddressKey = types.NodeIDByAddressKey SubscriptionKey = types.SubscriptionKey SubscriptionsCountOfNodeKey = types.SubscriptionsCountOfNodeKey SubscriptionIDByNodeIDKey = types.SubscriptionIDByNodeIDKey SubscriptionsCountOfAddressKey = types.SubscriptionsCountOfAddressKey SubscriptionIDByAddressKey = types.SubscriptionIDByAddressKey SessionKey = types.SessionKey SessionsCountOfSubscriptionKey = types.SessionsCountOfSubscriptionKey SessionIDBySubscriptionIDKey = types.SessionIDBySubscriptionIDKey ActiveNodeIDsKey = types.ActiveNodeIDsKey ActiveSessionIDsKey = types.ActiveSessionIDsKey NewMsgRegisterNode = types.NewMsgRegisterNode NewMsgUpdateNodeInfo = types.NewMsgUpdateNodeInfo NewMsgDeregisterNode = types.NewMsgDeregisterNode NewParams = types.NewParams DefaultParams = types.DefaultParams NewQueryNodeParams = types.NewQueryNodeParams NewQueryNodesOfAddressParams = types.NewQueryNodesOfAddressParams NewQuerySubscriptionParams = types.NewQuerySubscriptionParams NewQuerySubscriptionsOfNodePrams = types.NewQuerySubscriptionsOfNodePrams NewQuerySubscriptionsOfAddressParams = types.NewQuerySubscriptionsOfAddressParams NewQuerySessionsCountOfSubscriptionParams = types.NewQuerySessionsCountOfSubscriptionParams NewQuerySessionParams = types.NewQuerySessionParams NewQuerySessionOfSubscriptionPrams = types.NewQuerySessionOfSubscriptionPrams NewQuerySessionsOfSubscriptionPrams = types.NewQuerySessionsOfSubscriptionPrams NewMsgUpdateSessionInfo = types.NewMsgUpdateSessionInfo NewMsgStartSubscription = types.NewMsgStartSubscription NewMsgEndSubscription = types.NewMsgEndSubscription NewKeeper = keeper.NewKeeper ParamKeyTable = keeper.ParamKeyTable NewQuerier = querier.NewQuerier RandomNode = keeper.RandomNode RandomSubscription = keeper.RandomSubscription RandomSession = keeper.RandomSession // variable aliases ModuleCdc = types.ModuleCdc NodesCountKey = types.NodesCountKey NodeKeyPrefix = types.NodeKeyPrefix NodesCountOfAddressKeyPrefix = types.NodesCountOfAddressKeyPrefix NodeIDByAddressKeyPrefix = types.NodeIDByAddressKeyPrefix SubscriptionsCountKey = types.SubscriptionsCountKey SubscriptionKeyPrefix = types.SubscriptionKeyPrefix SubscriptionsCountOfNodeKeyPrefix = types.SubscriptionsCountOfNodeKeyPrefix SubscriptionIDByNodeIDKeyPrefix = types.SubscriptionIDByNodeIDKeyPrefix SubscriptionsCountOfAddressKeyPrefix = types.SubscriptionsCountOfAddressKeyPrefix SubscriptionIDByAddressKeyPrefix = types.SubscriptionIDByAddressKeyPrefix SessionsCountKey = types.SessionsCountKey SessionKeyPrefix = types.SessionKeyPrefix SessionsCountOfSubscriptionKeyPrefix = types.SessionsCountOfSubscriptionKeyPrefix SessionIDBySubscriptionIDKeyPrefix = types.SessionIDBySubscriptionIDKeyPrefix DefaultFreeNodesCount = types.DefaultFreeNodesCount DefaultDeposit = types.DefaultDeposit DefaultSessionInactiveInterval = types.DefaultSessionInactiveInterval KeyFreeNodesCount = types.KeyFreeNodesCount KeyDeposit = types.KeyDeposit KeySessionInactiveInterval = types.KeySessionInactiveInterval )
Functions ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState)
func ValidateGenesis ¶
func ValidateGenesis(data types.GenesisState) error
Types ¶
type AppModule ¶ added in v0.2.0
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
func NewAppModule ¶ added in v0.2.0
func (AppModule) BeginBlock ¶ added in v0.2.0
func (a AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
func (AppModule) EndBlock ¶ added in v0.2.0
func (a AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
func (AppModule) ExportGenesis ¶ added in v0.2.0
func (a AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
func (AppModule) InitGenesis ¶ added in v0.2.0
func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
func (AppModule) NewHandler ¶ added in v0.2.0
func (AppModule) NewQuerierHandler ¶ added in v0.2.0
func (AppModule) QuerierRoute ¶ added in v0.2.0
func (AppModule) RegisterInvariants ¶ added in v0.2.0
func (a AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
type AppModuleBasic ¶ added in v0.2.0
type AppModuleBasic struct{}
func (AppModuleBasic) DefaultGenesis ¶ added in v0.2.0
func (a AppModuleBasic) DefaultGenesis() json.RawMessage
func (AppModuleBasic) GetQueryCmd ¶ added in v0.2.0
func (a AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
func (AppModuleBasic) GetTxCmd ¶ added in v0.2.0
func (a AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
func (AppModuleBasic) Name ¶ added in v0.2.0
func (a AppModuleBasic) Name() string
func (AppModuleBasic) RegisterCodec ¶ added in v0.2.0
func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec)
func (AppModuleBasic) RegisterRESTRoutes ¶ added in v0.2.0
func (a AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)
func (AppModuleBasic) ValidateGenesis ¶ added in v0.2.0
func (a AppModuleBasic) ValidateGenesis(data json.RawMessage) error
type GenesisState ¶
type GenesisState = types.GenesisState
type MsgDeregisterNode ¶
type MsgDeregisterNode = types.MsgDeregisterNode
type MsgEndSubscription ¶
type MsgEndSubscription = types.MsgEndSubscription
type MsgRegisterNode ¶
type MsgRegisterNode = types.MsgRegisterNode
type MsgStartSubscription ¶
type MsgStartSubscription = types.MsgStartSubscription
type MsgUpdateNodeInfo ¶
type MsgUpdateNodeInfo = types.MsgUpdateNodeInfo
type MsgUpdateSessionInfo ¶
type MsgUpdateSessionInfo = types.MsgUpdateSessionInfo
type QueryNodeParams ¶
type QueryNodeParams = types.QueryNodeParams
type QueryNodesOfAddressPrams ¶
type QueryNodesOfAddressPrams = types.QueryNodesOfAddressPrams
type QuerySessionOfSubscriptionPrams ¶
type QuerySessionOfSubscriptionPrams = types.QuerySessionOfSubscriptionPrams
type QuerySessionParams ¶
type QuerySessionParams = types.QuerySessionParams
type QuerySessionsCountOfSubscriptionParams ¶
type QuerySessionsCountOfSubscriptionParams = types.QuerySessionsCountOfSubscriptionParams
type QuerySessionsOfSubscriptionPrams ¶
type QuerySessionsOfSubscriptionPrams = types.QuerySessionsOfSubscriptionPrams
type QuerySubscriptionParams ¶
type QuerySubscriptionParams = types.QuerySubscriptionParams
type QuerySubscriptionsOfAddressParams ¶
type QuerySubscriptionsOfAddressParams = types.QuerySubscriptionsOfAddressParams
type QuerySubscriptionsOfNodePrams ¶
type QuerySubscriptionsOfNodePrams = types.QuerySubscriptionsOfNodePrams
type Subscription ¶
type Subscription = types.Subscription
Click to show internal directories.
Click to hide internal directories.