Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RiotGames/developer-relations
/ functions
Functions
57 in github.com/RiotGames/developer-relations
⨍
Functions
57
◇
Types & classes
20
↳
Endpoints
3
↓ 6 callers
Function
create_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 callers
Function
configuration
(auth: &AuthProvider)
sample_apps/rso_sample_apps/rust/src/service.rs:77
↓ 4 callers
Function
create_cfg
()
sample_apps/rso_sample_apps/rust/src/config.rs:174
↓ 4 callers
Function
create_cfg_api_url
(url: String)
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:221
↓ 3 callers
Function
account_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 callers
Function
champion_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 callers
Function
create_cfg_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:196
↓ 2 callers
Function
default
()
sample_apps/rso_sample_apps/rust/src/service.rs:103
↓ 2 callers
Function
json2table
(json)
sample_apps/rso_sample_apps/python/main.py:71
↓ 2 callers
Function
json2table
(json)
sample_apps/rso_sample_apps/nodejs/index.js:109
↓ 2 callers
Function
parse
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 callers
Function
structToHTML
(data map[string]string)
sample_apps/rso_sample_apps/go/main.go:183
↓ 1 callers
Method
callback_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 callers
Method
from
(cfg: config::Config)
sample_apps/rso_sample_apps/rust/src/config.rs:37
↓ 1 callers
Function
getAccountData
(accessToken string)
sample_apps/rso_sample_apps/go/main.go:123
↓ 1 callers
Function
getChampionRotationData
(token string)
sample_apps/rso_sample_apps/go/main.go:153
↓ 1 callers
Function
get_account_data
(access_token)
sample_apps/rso_sample_apps/python/main.py:131
↓ 1 callers
Function
get_account_data
(access_token)
sample_apps/rso_sample_apps/nodejs/index.js:96
↓ 1 callers
Function
get_champion_rotation_data
(token: str)
sample_apps/rso_sample_apps/python/main.py:142
↓ 1 callers
Function
get_champion_rotation_data
(token)
sample_apps/rso_sample_apps/nodejs/index.js:83
↓ 1 callers
Function
listen
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 callers
Function
loadConfig
()
sample_apps/rso_sample_apps/go/main.go:19
↓ 1 callers
Method
sign_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 callers
Method
token_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
Function
account_data_handles_error
()
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:255
Function
account_data_returns_expected_result
()
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:247
Method
authorize_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
Function
champion_rotation_data_handles_error
()
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:276
Function
champion_rotation_data_returns_expected_result
()
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:264
Function
data_returns_expected_result
()
sample_apps/rso_sample_apps/rust/src/service.rs:153
Function
data_returns_unauthorized_when_no_access_token
()
sample_apps/rso_sample_apps/rust/src/service.rs:172
Method
fmt
(&self, f: &mut std::fmt::Formatter)
sample_apps/rso_sample_apps/rust/src/handlers/data.rs:22
Function
handle
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
Function
handle
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
Function
handle
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
Method
into_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
Function
login
()
sample_apps/rso_sample_apps/python/main.py:42
Function
login
(w http.ResponseWriter, req *http.Request)
sample_apps/rso_sample_apps/go/main.go:54
Function
main
()
sample_apps/rso_sample_apps/rust/src/main.rs:36
Function
main
()
sample_apps/rso_sample_apps/go/main.go:220
Method
new
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
Function
oauthCallback
(w http.ResponseWriter, req *http.Request)
sample_apps/rso_sample_apps/go/main.go:64
Function
oauth_callback
(code: str)
sample_apps/rso_sample_apps/python/main.py:50
Function
oauth_code
()
sample_apps/rso_sample_apps/rust/src/service.rs:134
Function
oauth_no_code
()
sample_apps/rso_sample_apps/rust/src/service.rs:116
Function
server_with_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:304
Function
server_without_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:317
Function
showData
(w http.ResponseWriter, req *http.Request)
sample_apps/rso_sample_apps/go/main.go:105
Function
show_data
tBD
sample_apps/rso_sample_apps/python/main.py:109
Function
test_authorize_url
()
sample_apps/rso_sample_apps/rust/src/config.rs:298
Function
test_callback_url
()
sample_apps/rso_sample_apps/rust/src/config.rs:277
Function
test_callback_url_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:283
Function
test_config_env
()
sample_apps/rso_sample_apps/rust/src/config.rs:222
Function
test_sign_in_url
()
sample_apps/rso_sample_apps/rust/src/config.rs:259
Function
test_sign_in_url_tls
()
sample_apps/rso_sample_apps/rust/src/config.rs:268
Function
test_token_url
()
sample_apps/rso_sample_apps/rust/src/config.rs:292
Function
tls_struct_holds_certificate_and_key
()
sample_apps/rso_sample_apps/rust/src/config.rs:327