nng

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 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(_ api.StreamContext) modules.Connection

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) Dial

func (s *Sock) Dial(ctx api.StreamContext) error

func (*Sock) GetId

func (s *Sock) GetId(_ api.StreamContext) string

func (*Sock) Ping

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

func (*Sock) Provision

func (s *Sock) Provision(ctx api.StreamContext, conId string, props map[string]any) error

func (*Sock) Send

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

func (*Sock) SetStatusChangeHandler

func (s *Sock) SetStatusChangeHandler(_ api.StreamContext, handler api.StatusChangeHandler)

func (*Sock) Status

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