Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

saintbyte/run_on

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run_on

Модуль который занимается тем что определяет по переменным окружения среды на каком облачном провайдере запущен скрипт. Содержит две функции:

  1. Detect возвращает строку которую содержит название облачного провайдера или unknown . Смотрите константы.
  2. Host возваращает строку и ошибку если определить не удалось . Строка содержит доменное имя хоста на облачном провайдере.к

Документация: https://pkg.go.dev/github.com/saintbyte/run_on

Поддерживает: Vercel,Render,Koeyb , YandexCloudFunction

Установка:

https://github.com/saintbyte/run_on/v0.1

Буду рад вашим пулл реквестам.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.