{"modulePath":"github.com/GoPlugin/pluginV2","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package web\n\n## Constants\n\n```go\nconst (\n\t// PaginationDefault is the number of records to supply from a paginated\n\t// request when no size param is supplied.\n\tPaginationDefault = 25\n\n\t// MediaType is the response header for JSONAPI documents.\n\tMediaType = \"application/vnd.api+json\"\n\n\t// KeyNextLink is the name of the key that contains the HREF for the next\n\t// document in a paginated response.\n\tKeyNextLink = \"next\"\n\t// KeyPreviousLink is the name of the key that contains the HREF for the\n\t// previous document in a paginated response.\n\tKeyPreviousLink = \"prev\"\n)\n```\n\n```go\nconst (\n\tFeatureKeyCSA          string = \"csa\"\n\tFeatureKeyFeedsManager string = \"feeds_manager\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tErrMissingChainID = errors.New(\"evmChainID does not match any local chains\")\n\tErrInvalidChainID = errors.New(\"invalid evmChainID\")\n\tErrMultipleChains = errors.New(\"more than one chain available, you must specify evmChainID parameter\")\n)\n```\n\n```go\nvar ErrEVMNotEnabled = errChainDisabled{/* contains filtered or unexported fields */}\n```\n\n```go\nvar ErrSolanaNotEnabled = errChainDisabled{/* contains filtered or unexported fields */}\n```\nErrSolanaNotEnabled is returned when SOLANA\\_ENABLED is not true.\n\n```go\nvar ErrStarkNetNotEnabled = errChainDisabled{/* contains filtered or unexported fields */}\n```\nErrStarkNetNotEnabled is returned when STARKNET\\_ENABLED is not true.\n\n## Functions\n\n```go\nfunc FindSessionCookie(cookies []*http.Cookie) *http.Cookie\n```\nFindSessionCookie returns the cookie with the \"clsession\" name\n\n```go\nfunc GzipFileServer(root ServeFileSystem, lggr logger.Logger) http.Handler\n```\nGzipFileServer is a drop-in replacement for Go's standard http.FileServer which adds support for static resources precompressed with gzip, at the cost of removing the support for directory browsing.\n\n```go\nfunc NewJSONAPIResponse(resource interface{}) ([]byte, error)\n```\nNewJSONAPIResponse returns a JSONAPI response for a single resource.\n\n```go\nfunc NewPaginatedResponse(url url.URL, size, page, count int, resource interface{}) ([]byte, error)\n```\nNewPaginatedResponse returns a jsonapi.Document with links to next and previous collection pages\n\n```go\nfunc NewRouter(app chainlink.Application, prometheus *ginprom.Prometheus) (*gin.Engine, error)\n```\nNewRouter returns \\*gin.Engine router that listens and responds to requests to the node for valid paths.\n\n```go\nfunc ParseJSONAPIResponse(input []byte, resource interface{}) error\n```\nParseJSONAPIResponse parses the bytes of the root document and unmarshals it into the given resource.\n\n```go\nfunc ParsePaginatedRequest(sizeParam, pageParam string) (int, int, int, error)\n```\nParsePaginatedRequest parses the parameters that control pagination for a collection request, returning the size and offset if specified, or a sensible default.\n\n```go\nfunc ParsePaginatedResponse(input []byte, resource interface{}, links *jsonapi.Links) error\n```\nParsePaginatedResponse parse a JSONAPI response for a document with links\n\n```go\nfunc Router(t testing.TB, app chainlink.Application, prometheus *ginprom.Prometheus) *gin.Engine\n```\n\n```go\nfunc ServeGzippedAssets(urlPrefix string, fs ServeFileSystem, lggr logger.Logger) gin.HandlerFunc\n```\nServeGzippedAssets returns a middleware handler that serves static files in the given directory.\n\n```go\nfunc ValidateBridgeType(bt *bridges.BridgeTypeRequest) error\n```\nValidateBridgeType checks that the bridge type has the required field with valid values.\n\n```go\nfunc ValidateBridgeTypeNotExist(bt *bridges.BridgeTypeRequest, orm bridges.ORM) error\n```\nValidateBridgeTypeNotExist checks that a bridge has not already been created\n\n```go\nfunc ValidateEthBalanceForTransfer(c *gin.Context, chain evm.Chain, fromAddr common.Address, amount assets.Eth) error\n```\nValidateEthBalanceForTransfer validates that the current balance can cover the transaction amount\n\n```go\nfunc ValidateExternalInitiator(\n\texi *bridges.ExternalInitiatorRequest,\n\torm bridges.ORM,\n) error\n```\nValidateExternalInitiator checks whether External Initiator parameters are safe for processing.\n\n## Types\n\n```go\ntype BridgeTypesController struct {\n\tApp chainlink.Application\n}\n```\nBridgeTypesController manages BridgeType requests in the node.\n\n```go\nfunc (btc *BridgeTypesController) Create(c *gin.Context)\n```\nCreate adds the BridgeType to the given context.\n\n```go\nfunc (btc *BridgeTypesController) Destroy(c *gin.Context)\n```\nDestroy removes a specific Bridge.\n\n```go\nfunc (btc *BridgeTypesController) Index(c *gin.Context, size, page, offset int)\n```\nIndex lists Bridges, one page at a time.\n\n```go\nfunc (btc *BridgeTypesController) Show(c *gin.Context)\n```\nShow returns the details of a specific Bridge.\n\n```go\nfunc (btc *BridgeTypesController) Update(c *gin.Context)\n```\nUpdate can change the restricted attributes for a bridge\n\n```go\ntype BuildInfoController struct {\n\tApp chainlink.Application\n}\n```\nBuildVersonController has the build\\_info endpoint.\n\n```go\nfunc (eic *BuildInfoController) Show(c *gin.Context)\n```\nShow returns the build info.\n\n```go\ntype CSAKeysController struct {\n\tApp chainlink.Application\n}\n```\nCSAKeysController manages CSA keys\n\n```go\nfunc (ctrl *CSAKeysController) Create(c *gin.Context)\n```\nCreate and return a CSA key Example: \"POST \\\u003capplication\u003e/keys/csa\"\n\n```go\nfunc (ctrl *CSAKeysController) Export(c *gin.Context)\n```\nExport exports a key\n\n```go\nfunc (ctrl *CSAKeysController) Import(c *gin.Context)\n```\nImport imports a CSA key\n\n```go\nfunc (ctrl *CSAKeysController) Index(c *gin.Context)\n```\nIndex lists CSA keys Example: \"GET \\\u003capplication\u003e/keys/csa\"\n\n```go\ntype ChainsController interface {\n\t// Index lists chains.\n\tIndex(c *gin.Context, size, page, offset int)\n\t// Create adds a new chain from a CreateChainRequest.\n\tCreate(*gin.Context)\n\t// Show gets a chain by id.\n\tShow(*gin.Context)\n\t// Update configures an existing chain from an UpdateChainRequest.\n\tUpdate(*gin.Context)\n\t// Delete removes a chain.\n\tDelete(*gin.Context)\n}\n```\n\n```go\nfunc NewEVMChainsController(app chainlink.Application) ChainsController\n```\n\n```go\nfunc NewSolanaChainsController(app chainlink.Application) ChainsController\n```\n\n```go\nfunc NewStarkNetChainsController(app chainlink.Application) ChainsController\n```\n\n```go\ntype Change struct {\n\tFrom string `json:\"old\"`\n\tTo   string `json:\"new\"`\n}\n```\nChange represents the old value and the new value after a PATH request has been made\n\n```go\ntype ConfigController struct {\n\tApp chainlink.Application\n}\n```\nConfigController manages config variables\n\n```go\nfunc (cc *ConfigController) Dump(c *gin.Context)\n```\n\n```go\nfunc (cc *ConfigController) Patch(c *gin.Context)\n```\nPatch updates one or more configuration options\n\n```go\nfunc (cc *ConfigController) Show(c *gin.Context)\n```\nShow returns the whitelist of config variables Example:\n\n\t\"\u003capplication\u003e/config\"\n\n```go\nfunc (cc *ConfigController) Show2(c *gin.Context)\n```\n\n```go\ntype ConfigPatchResponse struct {\n\tEvmGasPriceDefault Change     `json:\"ethGasPriceDefault\"`\n\tEVMChainID         *utils.Big `json:\"evmChainID\"`\n}\n```\nConfigPatchResponse represents the change to the configuration made due to a PATCH to the config endpoint\n\n```go\nfunc (c ConfigPatchResponse) GetID() string\n```\nGetID returns the jsonapi ID.\n\n```go\nfunc (*ConfigPatchResponse) SetID(string) error\n```\nSetID is used to conform to the UnmarshallIdentifier interface for deserializing from jsonapi documents.\n\n```go\ntype ConfigV2Resource struct {\n\tConfig string `json:\"config\"`\n}\n```\n\n```go\nfunc (c ConfigV2Resource) GetID() string\n```\n\n```go\nfunc (c *ConfigV2Resource) SetID(string) error\n```\n\n```go\ntype CreateChainRequest[I chains.ID, C chains.Config] struct {\n\tID     I `json:\"chainID\"`\n\tConfig C `json:\"config\"`\n}\n```\n\n```go\nfunc NewCreateChainRequest[I chains.ID, C chains.Config](id I, config C) CreateChainRequest[I, C]\n```\n\n```go\ntype CreateJobRequest struct {\n\tTOML string `json:\"toml\"`\n}\n```\nCreateJobRequest represents a request to create and start a job (V2).\n\n```go\ntype ETHKeysController struct {\n\t// contains filtered or unexported fields\n}\n```\nETHKeysController manages account keys\n\n```go\nfunc NewETHKeysController(app chainlink.Application) *ETHKeysController\n```\n\n```go\nfunc (ekc *ETHKeysController) Chain(c *gin.Context)\n```\nChain updates settings for a given chain for the key\n\n```go\nfunc (ekc *ETHKeysController) Create(c *gin.Context)\n```\nCreate adds a new account Example:\n\n\t\"\u003capplication\u003e/keys/eth\"\n\n```go\nfunc (ekc *ETHKeysController) Delete(c *gin.Context)\n```\nDelete an ETH key bundle (irreversible!) Example: \"DELETE \\\u003capplication\u003e/keys/eth/:keyID\"\n\n```go\nfunc (ekc *ETHKeysController) Export(c *gin.Context)\n```\n\n```go\nfunc (ekc *ETHKeysController) Import(c *gin.Context)\n```\nImport imports a key\n\n```go\nfunc (ekc *ETHKeysController) Index(c *gin.Context)\n```\nIndex returns the node's Ethereum keys and the account balances of ETH \u0026 LINK. Example:\n\n\t\"\u003capplication\u003e/keys/eth\"\n\n```go\nfunc (ekc *ETHKeysController) Update(c *gin.Context)\n```\nUpdate an ETH key's parameters Example: \"PUT \\\u003capplication\u003e/keys/eth/:keyID?maxGasPriceGWei=12345\"\n\n```go\ntype EVMForwardersController struct {\n\tApp chainlink.Application\n}\n```\nEVMForwardersController manages EVM forwarders.\n\n```go\nfunc (cc *EVMForwardersController) Delete(c *gin.Context)\n```\nDelete removes an EVM Forwarder.\n\n```go\nfunc (cc *EVMForwardersController) Index(c *gin.Context, size, page, offset int)\n```\nIndex lists EVM forwarders.\n\n```go\nfunc (cc *EVMForwardersController) Track(c *gin.Context)\n```\nTrack adds a new EVM forwarder.\n\n```go\ntype EVMTransfersController struct {\n\tApp chainlink.Application\n}\n```\nEVMTransfersController can send LINK tokens to another address\n\n```go\nfunc (tc *EVMTransfersController) Create(c *gin.Context)\n```\nCreate sends ETH from the Chainlink's account to a specified address.\n\nExample: \"\\\u003capplication\u003e/withdrawals\"\n\n```go\ntype EmbedFileSystem struct {\n\tembed.FS\n\thttp.FileSystem\n\t// contains filtered or unexported fields\n}\n```\nEmbedFileSystem implements the ServeFileSystem interface using an embed.FS object.\n\n```go\nfunc (e *EmbedFileSystem) Exists(prefix string, filepath string) bool\n```\nExists implements the ServeFileSystem interface.\n\n```go\nfunc (e *EmbedFileSystem) Open(name string) (http.File, error)\n```\nOpen implements the http.FileSystem interface.\n\n```go\ntype ExternalInitiatorsController struct {\n\tApp chainlink.Application\n}\n```\nExternalInitiatorsController manages external initiators\n\n```go\nfunc (eic *ExternalInitiatorsController) Create(c *gin.Context)\n```\nCreate builds and saves a new external initiator\n\n```go\nfunc (eic *ExternalInitiatorsController) Destroy(c *gin.Context)\n```\nDestroy deletes an ExternalInitiator\n\n```go\nfunc (eic *ExternalInitiatorsController) Index(c *gin.Context, size, page, offset int)\n```\n\n```go\ntype FeaturesController struct {\n\tApp chainlink.Application\n}\n```\nFeaturesController manages the feature flags\n\n```go\nfunc (fc *FeaturesController) Index(c *gin.Context)\n```\nIndex retrieves the features Example: \"GET \\\u003capplication\u003e/features\"\n\n```go\ntype HealthController struct {\n\tApp chainlink.Application\n}\n```\n\n```go\nfunc (hc *HealthController) Health(c *gin.Context)\n```\n\n```go\nfunc (hc *HealthController) Readyz(c *gin.Context)\n```\nNOTE: We only implement the k8s readiness check, \\*not\\* the liveness check. Liveness checks are only recommended in cases where the app doesn't crash itself on panic, and if implemented incorrectly can cause cascading failures. See the following for more information: - [https://srcco.de/posts/kubernetes-liveness-probes-are-dangerous.html](https://srcco.de/posts/kubernetes-liveness-probes-are-dangerous.html)\n\n```go\ntype JobsController struct {\n\tApp chainlink.Application\n}\n```\nJobsController manages jobs\n\n```go\nfunc (jc *JobsController) Create(c *gin.Context)\n```\nCreate validates, saves and starts a new job. Example: \"POST \\\u003capplication\u003e/jobs\"\n\n```go\nfunc (jc *JobsController) Delete(c *gin.Context)\n```\nDelete hard deletes a job spec. Example: \"DELETE \\\u003capplication\u003e/specs/:ID\"\n\n```go\nfunc (jc *JobsController) Index(c *gin.Context, size, page, offset int)\n```\nIndex lists all jobs Example: \"GET \\\u003capplication\u003e/jobs\"\n\n```go\nfunc (jc *JobsController) Show(c *gin.Context)\n```\nShow returns the details of a job :ID could be both job ID and external job ID Example: \"GET \\\u003capplication\u003e/jobs/:ID\"\n\n```go\nfunc (jc *JobsController) Update(c *gin.Context)\n```\nUpdate validates a new TOML for an existing job, stops and deletes existing job, saves and starts a new job. Example: \"PUT \\\u003capplication\u003e/jobs/:ID\"\n\n```go\ntype KeysController interface {\n\t// Index lists keys\n\tIndex(*gin.Context)\n\t// Create and return a key\n\tCreate(*gin.Context)\n\t// Delete a key\n\tDelete(*gin.Context)\n\t// Import imports a key\n\tImport(*gin.Context)\n\t// Export exports a key\n\tExport(*gin.Context)\n}\n```\n\n```go\nfunc NewDKGEncryptKeysController(app chainlink.Application) KeysController\n```\n\n```go\nfunc NewDKGSignKeysController(app chainlink.Application) KeysController\n```\n\n```go\nfunc NewKeysController[K keystore.Key, R jsonapi.EntityNamer](ks Keystore[K], lggr logger.Logger, auditLogger audit.AuditLogger, resourceName string,\n\tnewResource func(K) *R, newResources func([]K) []R) KeysController\n```\n\n```go\nfunc NewSolanaKeysController(app chainlink.Application) KeysController\n```\n\n```go\nfunc NewStarkNetKeysController(app chainlink.Application) KeysController\n```\n\n```go\ntype Keystore[K keystore.Key] interface {\n\tGet(id string) (K, error)\n\tGetAll() ([]K, error)\n\tCreate() (K, error)\n\tDelete(id string) (K, error)\n\tImport(keyJSON []byte, password string) (K, error)\n\tExport(id string, password string) ([]byte, error)\n}\n```\n\n```go\ntype LogController struct {\n\tApp chainlink.Application\n}\n```\nLogController manages the logger config\n\n```go\nfunc (cc *LogController) Get(c *gin.Context)\n```\nGet retrieves the current log config settings\n\n```go\nfunc (cc *LogController) Patch(c *gin.Context)\n```\nPatch sets a log level and enables sql logging for the logger\n\n```go\ntype LogPatchRequest struct {\n\tLevel      string `json:\"level\"`\n\tSqlEnabled *bool  `json:\"sqlEnabled\"`\n}\n```\n\n```go\ntype NodesController interface {\n\t// Index lists nodes, and optionally filters by chain id.\n\tIndex(c *gin.Context, size, page, offset int)\n\t// Create adds a new node.\n\tCreate(*gin.Context)\n\t// Delete removes a node.\n\tDelete(*gin.Context)\n}\n```\n\n```go\nfunc NewEVMNodesController(app chainlink.Application) NodesController\n```\n\n```go\nfunc NewSolanaNodesController(app chainlink.Application) NodesController\n```\n\n```go\nfunc NewStarkNetNodesController(app chainlink.Application) NodesController\n```\n\n```go\ntype OCR2KeysController struct {\n\tApp chainlink.Application\n}\n```\nOCRKeysController manages OCR key bundles\n\n```go\nfunc (ocr2kc *OCR2KeysController) Create(c *gin.Context)\n```\nCreate and return an OCR2 key bundle Example: \"POST \\\u003capplication\u003e/keys/ocr\"\n\n```go\nfunc (ocr2kc *OCR2KeysController) Delete(c *gin.Context)\n```\nDelete an OCR2 key bundle Example: \"DELETE \\\u003capplication\u003e/keys/ocr/:keyID\"\n\n```go\nfunc (ocr2kc *OCR2KeysController) Export(c *gin.Context)\n```\nExport exports an OCR2 key bundle Example: \"Post \\\u003capplication\u003e/keys/ocr/export\"\n\n```go\nfunc (ocr2kc *OCR2KeysController) Import(c *gin.Context)\n```\nImport imports an OCR2 key bundle Example: \"Post \\\u003capplication\u003e/keys/ocr/import\"\n\n```go\nfunc (ocr2kc *OCR2KeysController) Index(c *gin.Context)\n```\nIndex lists OCR2 key bundles Example: \"GET \\\u003capplication\u003e/keys/ocr\"\n\n```go\ntype OCRKeysController struct {\n\tApp chainlink.Application\n}\n```\nOCRKeysController manages OCR key bundles\n\n```go\nfunc (ocrkc *OCRKeysController) Create(c *gin.Context)\n```\nCreate and return an OCR key bundle Example: \"POST \\\u003capplication\u003e/keys/ocr\"\n\n```go\nfunc (ocrkc *OCRKeysController) Delete(c *gin.Context)\n```\nDelete an OCR key bundle Example: \"DELETE \\\u003capplication\u003e/keys/ocr/:keyID\" \"DELETE \\\u003capplication\u003e/keys/ocr/:keyID?hard=true\"\n\n```go\nfunc (ocrkc *OCRKeysController) Export(c *gin.Context)\n```\nExport exports an OCR key bundle Example: \"Post \\\u003capplication\u003e/keys/ocr/export\"\n\n```go\nfunc (ocrkc *OCRKeysController) Import(c *gin.Context)\n```\nImport imports an OCR key bundle Example: \"Post \\\u003capplication\u003e/keys/ocr/import\"\n\n```go\nfunc (ocrkc *OCRKeysController) Index(c *gin.Context)\n```\nIndex lists OCR key bundles Example: \"GET \\\u003capplication\u003e/keys/ocr\"\n\n```go\ntype P2PKeysController struct {\n\tApp chainlink.Application\n}\n```\nP2PKeysController manages P2P keys\n\n```go\nfunc (p2pkc *P2PKeysController) Create(c *gin.Context)\n```\nCreate and return a P2P key Example: \"POST \\\u003capplication\u003e/keys/p2p\"\n\n```go\nfunc (p2pkc *P2PKeysController) Delete(c *gin.Context)\n```\nDelete a P2P key Example: \"DELETE \\\u003capplication\u003e/keys/p2p/:keyID\" \"DELETE \\\u003capplication\u003e/keys/p2p/:keyID?hard=true\"\n\n```go\nfunc (p2pkc *P2PKeysController) Export(c *gin.Context)\n```\nExport exports a P2P key Example: \"Post \\\u003capplication\u003e/keys/p2p/export\"\n\n```go\nfunc (p2pkc *P2PKeysController) Import(c *gin.Context)\n```\nImport imports a P2P key Example: \"Post \\\u003capplication\u003e/keys/p2p/import\"\n\n```go\nfunc (p2pkc *P2PKeysController) Index(c *gin.Context)\n```\nIndex lists P2P keys Example: \"GET \\\u003capplication\u003e/keys/p2p\"\n\n```go\ntype PingController struct {\n\tApp chainlink.Application\n}\n```\nPingController has the ping endpoint.\n\n```go\nfunc (eic *PingController) Show(c *gin.Context)\n```\nShow returns pong.\n\n```go\ntype PipelineJobSpecErrorsController struct {\n\tApp chainlink.Application\n}\n```\nPipelineJobSpecErrorsController manages PipelineJobSpecError requests\n\n```go\nfunc (psec *PipelineJobSpecErrorsController) Destroy(c *gin.Context)\n```\nDestroy deletes a PipelineJobSpecError record from the database, effectively silencing the error notification\n\n```go\ntype PipelineRunsController struct {\n\tApp chainlink.Application\n}\n```\nPipelineRunsController manages V2 job run requests.\n\n```go\nfunc (prc *PipelineRunsController) Create(c *gin.Context)\n```\nCreate triggers a pipeline run for a job. Example: \"POST \\\u003capplication\u003e/jobs/:ID/runs\"\n\n```go\nfunc (prc *PipelineRunsController) Index(c *gin.Context, size, page, offset int)\n```\nIndex returns all pipeline runs for a job. Example: \"GET \\\u003capplication\u003e/jobs/:ID/runs\"\n\n```go\nfunc (prc *PipelineRunsController) Resume(c *gin.Context)\n```\nResume finishes a task and resumes the pipeline run. Example: \"PATCH \\\u003capplication\u003e/jobs/:ID/runs/:runID\"\n\n```go\nfunc (prc *PipelineRunsController) Show(c *gin.Context)\n```\nShow returns a specified pipeline run. Example: \"GET \\\u003capplication\u003e/jobs/:ID/runs/:runID\"\n\n```go\ntype ReplayController struct {\n\tApp chainlink.Application\n}\n```\n\n```go\nfunc (bdc *ReplayController) ReplayFromBlock(c *gin.Context)\n```\nReplayFromBlock causes the node to process blocks again from the given block number Example:\n\n\t\"\u003capplication\u003e/v2/replay_from_block/:number\"\n\n```go\ntype ReplayResponse struct {\n\tMessage    string     `json:\"message\"`\n\tEVMChainID *utils.Big `json:\"evmChainID\"`\n}\n```\n\n```go\nfunc (s ReplayResponse) GetID() string\n```\nGetID returns the jsonapi ID.\n\n```go\nfunc (ReplayResponse) GetName() string\n```\nGetName returns the collection name for jsonapi.\n\n```go\nfunc (*ReplayResponse) SetID(string) error\n```\nSetID is used to conform to the UnmarshallIdentifier interface for deserializing from jsonapi documents.\n\n```go\ntype SecurityConfig interface {\n\tAllowOrigins() string\n\tDev() bool\n\tTLSRedirect() bool\n\tTLSHost() string\n}\n```\n\n```go\ntype ServeFileSystem interface {\n\thttp.FileSystem\n\tExists(prefix string, path string) bool\n}\n```\nServeFileSystem wraps a http.FileSystem with an additional file existence check\n\n```go\nfunc NewEmbedFileSystem(efs embed.FS, pathPrefix string) ServeFileSystem\n```\n\n```go\ntype Session struct {\n\tAuthenticated bool `json:\"authenticated\"`\n}\n```\n\n```go\nfunc (s Session) GetID() string\n```\nGetID returns the jsonapi ID.\n\n```go\nfunc (Session) GetName() string\n```\nGetName returns the collection name for jsonapi.\n\n```go\nfunc (*Session) SetID(string) error\n```\nSetID is used to conform to the UnmarshallIdentifier interface for deserializing from jsonapi documents.\n\n```go\ntype SessionsController struct {\n\tApp chainlink.Application\n\t// contains filtered or unexported fields\n}\n```\nSessionsController manages session requests.\n\n```go\nfunc NewSessionsController(app chainlink.Application) *SessionsController\n```\n\n```go\nfunc (sc *SessionsController) Create(c *gin.Context)\n```\nCreate creates a session ID for the given user credentials, and returns it in a cookie.\n\n```go\nfunc (sc *SessionsController) Destroy(c *gin.Context)\n```\nDestroy removes the specified session ID from the database.\n\n```go\ntype SolanaTransfersController struct {\n\tApp chainlink.Application\n}\n```\nSolanaTransfersController can send LINK tokens to another address\n\n```go\nfunc (tc *SolanaTransfersController) Create(c *gin.Context)\n```\nCreate sends Luna and other native coins from the Chainlink's account to a specified address.\n\n```go\ntype TrackEVMForwarderRequest struct {\n\tEVMChainID *utils.Big     `json:\"chainID\"`\n\tAddress    common.Address `json:\"address\"`\n}\n```\nTrackEVMForwarderRequest is a JSONAPI request for creating an EVM forwarder.\n\n```go\ntype TransactionsController struct {\n\tApp chainlink.Application\n}\n```\nTransactionsController displays Ethereum transactions requests.\n\n```go\nfunc (tc *TransactionsController) Index(c *gin.Context, size, page, offset int)\n```\nIndex returns paginated transactions\n\n```go\nfunc (tc *TransactionsController) Show(c *gin.Context)\n```\nShow returns the details of a Ethereum Transaction details. Example:\n\n\t\"\u003capplication\u003e/transactions/:TxHash\"\n\n```go\ntype TxAttemptsController struct {\n\tApp chainlink.Application\n}\n```\nTxAttemptsController lists TxAttempts requests.\n\n```go\nfunc (tac *TxAttemptsController) Index(c *gin.Context, size, page, offset int)\n```\nIndex returns paginated transaction attempts\n\n```go\ntype UpdateChainRequest[C chains.Config] struct {\n\tEnabled bool `json:\"enabled\"`\n\tConfig  C    `json:\"config\"`\n}\n```\n\n```go\ntype UpdateJobRequest struct {\n\tTOML string `json:\"toml\"`\n}\n```\nUpdateJobRequest represents a request to update a job with new toml and start a job (V2).\n\n```go\ntype UpdatePasswordRequest struct {\n\tOldPassword string `json:\"oldPassword\"`\n\tNewPassword string `json:\"newPassword\"`\n}\n```\nUpdatePasswordRequest defines the request to set a new password for the current session's User.\n\n```go\ntype UserController struct {\n\tApp chainlink.Application\n}\n```\nUserController manages the current Session's User.\n\n```go\nfunc (c *UserController) Create(ctx *gin.Context)\n```\nCreate creates a new API user with provided context arguments.\n\n```go\nfunc (c *UserController) Delete(ctx *gin.Context)\n```\nDelete deletes an API user and any sessions by email\n\n```go\nfunc (c *UserController) DeleteAPIToken(ctx *gin.Context)\n```\nDeleteAPIToken deletes and disables a user's API token.\n\n```go\nfunc (c *UserController) Index(ctx *gin.Context)\n```\nIndex lists all API users\n\n```go\nfunc (c *UserController) NewAPIToken(ctx *gin.Context)\n```\nNewAPIToken generates a new API token for a user overwriting any pre-existing one set.\n\n```go\nfunc (c *UserController) UpdatePassword(ctx *gin.Context)\n```\nUpdatePassword changes the password for the current User.\n\n```go\nfunc (c *UserController) UpdateRole(ctx *gin.Context)\n```\nUpdateRole changes role field of a specified API user.\n\n```go\ntype VRFKeysController struct {\n\tApp chainlink.Application\n}\n```\nVRFKeysController manages VRF keys\n\n```go\nfunc (vrfkc *VRFKeysController) Create(c *gin.Context)\n```\nCreate and return a VRF key Example: \"POST \\\u003capplication\u003e/keys/vrf\"\n\n```go\nfunc (vrfkc *VRFKeysController) Delete(c *gin.Context)\n```\nDelete a VRF key Example: \"DELETE \\\u003capplication\u003e/keys/vrf/:keyID\" \"DELETE \\\u003capplication\u003e/keys/vrf/:keyID?hard=true\"\n\n```go\nfunc (vrfkc *VRFKeysController) Export(c *gin.Context)\n```\nExport exports a VRF key Example: \"Post \\\u003capplication\u003e/keys/vrf/export/:keyID\"\n\n```go\nfunc (vrfkc *VRFKeysController) Import(c *gin.Context)\n```\nImport imports a VRF key Example: \"Post \\\u003capplication\u003e/keys/vrf/import\"\n\n```go\nfunc (vrfkc *VRFKeysController) Index(c *gin.Context)\n```\nIndex lists VRF keys Example: \"GET \\\u003capplication\u003e/keys/vrf\"\n\n```go\ntype WebAuthnController struct {\n\tApp chainlink.Application\n\t// contains filtered or unexported fields\n}\n```\nWebAuthnController manages registers new keys as well as authentication with those keys\n\n```go\nfunc NewWebAuthnController(app chainlink.Application) WebAuthnController\n```\n\n```go\nfunc (c *WebAuthnController) BeginRegistration(ctx *gin.Context)\n```\n\n```go\nfunc (c *WebAuthnController) FinishRegistration(ctx *gin.Context)\n```\n\n","path":"github.com/GoPlugin/pluginV2/core/web","name":"web","synopsis":"","isRedistributable":true}
