utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(in string, obj interface{}) error

Decode decodes the input from base64 It can optionally unzip the input after decoding

func Encode

func Encode(obj interface{}) (string, error)

Encode encodes the input in base64 It can optionally zip the input before encoding

func StripSDP

func StripSDP(originalSDP string) string

StripSDP remove useless elements from an SDP

func TranslateURL

func TranslateURL(url string) string

TranslateURL translates all non local URLs to use HTTPS/WSS

Types

This section is empty.

Jump to

Keyboard shortcuts

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