signal

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recv

func Recv(keypair crypt.KeyPair, peerPublicKey crypt.Key, options ...Option) (data []byte, err error)

Recv receives a message from a peer. Messages are encrypted and authenticated.

func Send

func Send(keypair crypt.KeyPair, peerPublicKey crypt.Key, data []byte, options ...Option) error

Send sends a message to a peer. Messages are encrypted and authenticated.

func SetDefaultOptions

func SetDefaultOptions(options ...Option)

SetDefaultOptions sets the default options

Types

type Option

type Option func(cfg *config) error

An Option customizes the config.

func WithChannel

func WithChannel(ch channels.Channel) Option

WithChannel sets the channel option.

Jump to

Keyboard shortcuts

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