common

package
v0.0.0-...-64ed5c8 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyHeader          = "User-PublicKey"
	Protocol           = "http://"
	URLSuffix          = ".onion"
	PublicEndpointPort = 3690
	PresenceInterval   = 60 * 1000 // milliseconds
)

Variables

View Source
var IsAlpha = regexp.MustCompile(`^[A-Za-z]+$`).MatchString
View Source
var IsAlphanumeric = regexp.MustCompile(`^[A-Za-z0-9]+$`).MatchString

Functions

func GetCurrentTime

func GetCurrentTime() string

GetCurrentTime ...

func ValidateMessage

func ValidateMessage(message string) bool

func ValidatePublicKey

func ValidatePublicKey(key string) bool

func ValidateURL

func ValidateURL(url string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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