util

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Timezones = []string{}/* 575 elements not displayed */

Functions

func ConvertToBytes

func ConvertToBytes(input string) (int64, error)

func GenerateCertificate

func GenerateCertificate(dnsNames []string, ipAddresses []net.IP) (string, string, error)

GenerateCertificate generates a self-signed certificate and private key in PEM format.

func GetIP

func GetIP(service string, nameserver string) (string, error)

func GetTargetFromSRV

func GetTargetFromSRV(service string, nameserver string) (string, string, error)

func NewCopier

func NewCopier(socket net.Conn, wsConnection *websocket.Conn) *copierConnections

func NewReverseProxy

func NewReverseProxy(target *url.URL, accessToken *string) *httputil.ReverseProxy

func ResolveSRVHttp

func ResolveSRVHttp(uri string, nameserver string) string

func UpdateAuthorizedKeys

func UpdateAuthorizedKeys(key string) error

func UpgradeToWS

func UpgradeToWS(w http.ResponseWriter, r *http.Request) *websocket.Conn

Upgrade the connection to a websocket connection

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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