run_on

package module
v0.0.0-...-613b2b8 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: BSD-2-Clause Imports: 2 Imported by: 0

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"
	Koeyb               = "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