utils

package
v0.0.0-...-dba23ac Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerTlsDir   = "tls"
	ServerCertFile = "bitmark-webgui.crt"
	ServerKeyFile  = "bitmark-webgui.key"
)

Variables

This section is empty.

Functions

func CheckBitcoinAddress

func CheckBitcoinAddress(address string) error

func EnsureFileExists

func EnsureFileExists(name string) bool

check if file exists

func GetTLSCertFile

func GetTLSCertFile(baseDir string) (string, string, bool, error)

func MakeSelfSignedCertificate

func MakeSelfSignedCertificate(name string, certificateFileName string, privateKeyFileName string, override bool, extraHosts []string) error

create a self-signed certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

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