controllers

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoktAppsController

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

PoktAppsController handles requests for staked applications

func NewPoktAppsController

func NewPoktAppsController(appRegistry apps_registry.AppsRegistryService, query db_query.Querier, secretProvider global_config.SecretProvider, logger *zap.Logger) *PoktAppsController

NewPoktAppsController creates a new instance of PoktAppsController.

func (*PoktAppsController) AddApplication

func (c *PoktAppsController) AddApplication(ctx *fasthttp.RequestCtx)

AddApplication - enables users to add an application programmatically. Not recommended since it requires transmitting creds over wire and opens up to MITM (if not encrypted, or user error).

func (*PoktAppsController) DeleteApplication

func (c *PoktAppsController) DeleteApplication(ctx *fasthttp.RequestCtx)

DeleteApplication - enables users to delete an application programmatically. Not recommended since it requires transmitting creds over wire and opens up to MITM (if not encrypted, or user error).

func (*PoktAppsController) GetAll

func (c *PoktAppsController) GetAll(ctx *fasthttp.RequestCtx)

GetAll returns all the apps in the registry

type QosNodeController

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

QosNodeController handles requests for staked applications

func NewQosNodeController

func NewQosNodeController(sessionRegistry session_registry.SessionRegistryService, logger *zap.Logger) *QosNodeController

NewQosNodeController creates a new instance of QosNodeController.

func (*QosNodeController) GetAll

func (c *QosNodeController) GetAll(ctx *fasthttp.RequestCtx)

GetAll returns all the qos nodes in the registry and exposes public information about them.

type RelayController

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

RelayController handles relay requests for a specific chain.

func NewRelayController

func NewRelayController(relayer pokt_v0.PocketRelayer, logger *zap.Logger) *RelayController

NewRelayController creates a new instance of RelayController.

func (*RelayController) HandleRelay

func (c *RelayController) HandleRelay(ctx *fasthttp.RequestCtx)

HandleRelay handles incoming relay requests.

Jump to

Keyboard shortcuts

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