gobind

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PeerTypeRemote    = pineconeRouter.PeerTypeRemote
	PeerTypeMulticast = pineconeRouter.PeerTypeMulticast
	PeerTypeBluetooth = pineconeRouter.PeerTypeBluetooth
	PeerTypeBonjour   = pineconeRouter.PeerTypeBonjour

	MaxFrameSize = types.MaxFrameSize
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindLogger

type BindLogger struct{}

func (BindLogger) Write

func (nsl BindLogger) Write(p []byte) (n int, err error)

type Conduit

type Conduit struct {
	conduit.Conduit
}

Re-export Conduit in this package for bindings.

type DendriteMonolith

type DendriteMonolith struct {
	StorageDirectory string
	CacheDirectory   string
	// contains filtered or unexported fields
}

func (*DendriteMonolith) BaseURL

func (m *DendriteMonolith) BaseURL() string

func (*DendriteMonolith) Conduit

func (m *DendriteMonolith) Conduit(zone string, peertype int) (*Conduit, error)

func (*DendriteMonolith) DisconnectPort

func (m *DendriteMonolith) DisconnectPort(port int)

func (*DendriteMonolith) DisconnectType

func (m *DendriteMonolith) DisconnectType(peertype int)

func (*DendriteMonolith) DisconnectZone

func (m *DendriteMonolith) DisconnectZone(zone string)

func (*DendriteMonolith) GetRelayServers

func (m *DendriteMonolith) GetRelayServers(nodeID string) string

func (*DendriteMonolith) PeerCount

func (m *DendriteMonolith) PeerCount(peertype int) int

func (*DendriteMonolith) PublicKey

func (m *DendriteMonolith) PublicKey() string

func (*DendriteMonolith) RegisterDevice

func (m *DendriteMonolith) RegisterDevice(localpart, deviceID string) (string, error)

func (*DendriteMonolith) RegisterNetworkCallback

func (m *DendriteMonolith) RegisterNetworkCallback(intfCallback InterfaceRetriever)

func (*DendriteMonolith) RegisterUser

func (m *DendriteMonolith) RegisterUser(localpart, password string) (string, error)

func (*DendriteMonolith) RelayingEnabled

func (m *DendriteMonolith) RelayingEnabled() bool

func (*DendriteMonolith) SessionCount

func (m *DendriteMonolith) SessionCount() int

func (*DendriteMonolith) SetMulticastEnabled

func (m *DendriteMonolith) SetMulticastEnabled(enabled bool)

func (*DendriteMonolith) SetRelayServers

func (m *DendriteMonolith) SetRelayServers(nodeID string, uris string)

func (*DendriteMonolith) SetRelayingEnabled

func (m *DendriteMonolith) SetRelayingEnabled(enabled bool)

func (*DendriteMonolith) SetStaticPeer

func (m *DendriteMonolith) SetStaticPeer(uri string)

func (*DendriteMonolith) Start

func (m *DendriteMonolith) Start()

func (*DendriteMonolith) Stop

func (m *DendriteMonolith) Stop()

type InterfaceInfo

type InterfaceInfo struct {
	Name         string
	Index        int
	Mtu          int
	Up           bool
	Broadcast    bool
	Loopback     bool
	PointToPoint bool
	Multicast    bool
	Addrs        string
}

type InterfaceRetriever

type InterfaceRetriever interface {
	CacheCurrentInterfaces() int
	GetCachedInterface(index int) *InterfaceInfo
}

Jump to

Keyboard shortcuts

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