run_on

package module
v0.0.0-...-41fc76c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: BSD-2-Clause Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

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

Documentation

Index

Constants

View Source
const (
	Vercel              = "VERCEL"
	Render              = "RENDER"
	Koyeb               = "KOYEB"
	YandexCloudFunction = "YANDEX_CLOUD_FUNCTION"
	Unknown             = "UNKNOWN"
)

Variables

This section is empty.

Functions

func Detect

func Detect() string

func Host

func Host() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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