MCPcopy Create free account

hub / github.com/RiotGames/developer-relations / functions

Functions57 in github.com/RiotGames/developer-relations

↓ 6 callersFunctioncreate_app
Creates an instance of `Router` configured with routes and application state. This function sets up the application's routes by associating URL paths
sample_apps/rso_sample_apps/rust/src/service.rs:18
↓ 5 callersFunctionconfiguration
(auth: &AuthProvider)
sample_apps/rso_sample_apps/rust/src/service.rs:77
↓ 4 callersFunctioncreate_cfg
()
sample_apps/rso_sample_apps/rust/src/config.rs:174
↓ 4 callersFunctioncreate_cfg_api_url
(url: String)
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:221
↓ 3 callersFunctionaccount_data
Fetches the account data for a user. This function sends a GET request to the provided URL with the provided token as the Authorization header. If th
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:72
↓ 3 callersFunctionchampion_rotation_data
Fetches the champion rotation data. This function sends a GET request to the provided URL with the provided token as the `X-Riot-Token` header. If th
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:113
↓ 2 callersFunctioncreate_cfg_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:196
↓ 2 callersFunctiondefault
()
sample_apps/rso_sample_apps/rust/src/service.rs:103
↓ 2 callersFunctionjson2table
(json)
sample_apps/rso_sample_apps/python/main.py:71
↓ 2 callersFunctionjson2table
(json)
sample_apps/rso_sample_apps/nodejs/index.js:109
↓ 2 callersFunctionparse
Parses the application configuration from a file and environment variables. # Arguments `filepath` - The path to the configuration file. # Returns A
sample_apps/rso_sample_apps/rust/src/config.rs:146
↓ 2 callersFunctionstructToHTML
(data map[string]string)
sample_apps/rso_sample_apps/go/main.go:183
↓ 1 callersMethodcallback_url
Constructs the callback URL for OAuth provider redirection. # Returns A `String` representing the full callback URL.
sample_apps/rso_sample_apps/rust/src/config.rs:100
↓ 1 callersMethodfrom
(cfg: config::Config)
sample_apps/rso_sample_apps/rust/src/config.rs:37
↓ 1 callersFunctiongetAccountData
(accessToken string)
sample_apps/rso_sample_apps/go/main.go:123
↓ 1 callersFunctiongetChampionRotationData
(token string)
sample_apps/rso_sample_apps/go/main.go:153
↓ 1 callersFunctionget_account_data
(access_token)
sample_apps/rso_sample_apps/python/main.py:131
↓ 1 callersFunctionget_account_data
(access_token)
sample_apps/rso_sample_apps/nodejs/index.js:96
↓ 1 callersFunctionget_champion_rotation_data
(token: str)
sample_apps/rso_sample_apps/python/main.py:142
↓ 1 callersFunctionget_champion_rotation_data
(token)
sample_apps/rso_sample_apps/nodejs/index.js:83
↓ 1 callersFunctionlisten
Starts the web service with the provided configuration. This asynchronous function attempts to parse the server address from the configuration and st
sample_apps/rso_sample_apps/rust/src/service.rs:38
↓ 1 callersFunctionloadConfig
()
sample_apps/rso_sample_apps/go/main.go:19
↓ 1 callersMethodsign_in_url
Constructs the sign-in URL with query parameters for OAuth authentication. # Returns A `String` representing the full sign-in URL.
sample_apps/rso_sample_apps/rust/src/config.rs:128
↓ 1 callersMethodtoken_url
Constructs the token endpoint URL. # Returns A `String` representing the full token endpoint URL.
sample_apps/rso_sample_apps/rust/src/config.rs:112
Functionaccount_data_handles_error
()
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:255
Functionaccount_data_returns_expected_result
()
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:247
Methodauthorize_url
Constructs the authorization endpoint URL. # Returns A `String` representing the full authorization endpoint URL.
sample_apps/rso_sample_apps/rust/src/config.rs:120
Functionchampion_rotation_data_handles_error
()
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:276
Functionchampion_rotation_data_returns_expected_result
()
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:264
Functiondata_returns_expected_result
()
sample_apps/rso_sample_apps/rust/src/service.rs:153
Functiondata_returns_unauthorized_when_no_access_token
()
sample_apps/rso_sample_apps/rust/src/service.rs:172
Methodfmt
(&self, f: &mut std::fmt::Formatter)
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:22
Functionhandle
Handles incoming OAuth requests by exchanging the authorization code for tokens. This asynchronous function acts as an Axum handler for OAuth request
sample_apps/rso_sample_apps/rust/src/handlers/oauth.rs:62
Functionhandle
Handles requests by generating a response with a sign-in URL. This asynchronous function is an Axum handler that constructs a `Response` struct with
sample_apps/rso_sample_apps/rust/src/handlers/default.rs:29
Functionhandle
Handles data requests by fetching account and champion rotation data. This asynchronous function acts as a handler for incoming data requests. It fir
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:186
Methodinto_response
Converts the contained Askama template into an Axum response. This method attempts to render the template into HTML. If successful, it returns an HTT
sample_apps/rso_sample_apps/rust/src/handlers/mod.rs:27
Functionlogin
()
sample_apps/rso_sample_apps/python/main.py:42
Functionlogin
(w http.ResponseWriter, req *http.Request)
sample_apps/rso_sample_apps/go/main.go:54
Functionmain
()
sample_apps/rso_sample_apps/rust/src/main.rs:36
Functionmain
()
sample_apps/rso_sample_apps/go/main.go:220
Methodnew
Creates a new `AuthProvider` instance with predefined mock behaviors for authentication requests. # Returns An `AuthProvider` instance with a running
sample_apps/rso_sample_apps/rust/mock/src/lib.rs:18
FunctionoauthCallback
(w http.ResponseWriter, req *http.Request)
sample_apps/rso_sample_apps/go/main.go:64
Functionoauth_callback
(code: str)
sample_apps/rso_sample_apps/python/main.py:50
Functionoauth_code
()
sample_apps/rso_sample_apps/rust/src/service.rs:134
Functionoauth_no_code
()
sample_apps/rso_sample_apps/rust/src/service.rs:116
Functionserver_with_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:304
Functionserver_without_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:317
FunctionshowData
(w http.ResponseWriter, req *http.Request)
sample_apps/rso_sample_apps/go/main.go:105
Functionshow_data
tBD
sample_apps/rso_sample_apps/python/main.py:109
Functiontest_authorize_url
()
sample_apps/rso_sample_apps/rust/src/config.rs:298
Functiontest_callback_url
()
sample_apps/rso_sample_apps/rust/src/config.rs:277
Functiontest_callback_url_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:283
Functiontest_config_env
()
sample_apps/rso_sample_apps/rust/src/config.rs:222
Functiontest_sign_in_url
()
sample_apps/rso_sample_apps/rust/src/config.rs:259
Functiontest_sign_in_url_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:268
Functiontest_token_url
()
sample_apps/rso_sample_apps/rust/src/config.rs:292
Functiontls_struct_holds_certificate_and_key
()
sample_apps/rso_sample_apps/rust/src/config.rs:327