client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectHost

func DetectHost(address string) string

DetectHost reads the network address from a multicast message by joining the given multicast group and waiting for some data before reading the source IP and returning it.

func GetConnectionString added in v0.15.1

func GetConnectionString(address string, host string) string

GetConnectionString extracts the port from the given address and constructs a new connection string with the host The resulting format is "host:port".

func LoadPrivateKey

func LoadPrivateKey(privateKeyLocation string) *rsa.PrivateKey

LoadPrivateKey loads a private RSA key from the given location

func ReadPrivateKey

func ReadPrivateKey(privateKeyLocation string) *rsa.PrivateKey

ReadPrivateKey reads a private RSA key from the given location, exiting on errors

func Sign

func Sign(privateKey *rsa.PrivateKey, message proto.Message) []byte

Sign creates a signature of the given message with the given key

Types

This section is empty.

Jump to

Keyboard shortcuts

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