nng

package
v2.0.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConnection

func CreateConnection(ctx api.StreamContext, props map[string]any) (modules.Connection, error)

Types

type Sock

type Sock struct {
	mangos.Socket
	// contains filtered or unexported fields
}

func (*Sock) Close

func (s *Sock) Close(_ api.StreamContext) error

func (*Sock) DetachSub

func (s *Sock) DetachSub(_ api.StreamContext, _ map[string]any)

func (*Sock) Ping

func (s *Sock) Ping(_ api.StreamContext) error

func (*Sock) Send

func (s *Sock) Send(ctx api.StreamContext, data []byte) error

type SockConf

type SockConf struct {
	Url      string `json:"url"`
	Protocol string `json:"protocol"`
}

func ValidateConf

func ValidateConf(props map[string]any) (*SockConf, error)

Jump to

Keyboard shortcuts

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