rpc

package
v0.4.0-beta.35 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvironmentVariableName = "RDRPC"

Functions

func EmitAll

func EmitAll(subscribers []Subscription, data []byte)

Types

type Endpoint

type Endpoint struct {
	Path string
	// contains filtered or unexported fields
}

func Start

func Start() (*Endpoint, error)

func (*Endpoint) Close

func (e *Endpoint) Close()

type RpcMessage

type RpcMessage struct {
	bus.Event
	Data string
}

type Subscribers

type Subscribers struct {
	// contains filtered or unexported fields
}

func (*Subscribers) Emit

func (s *Subscribers) Emit(data []byte)

func (*Subscribers) Subscribe

func (s *Subscribers) Subscribe(receiver Subscription)

type Subscription

type Subscription interface {
	Receive(message []byte) (bool, error)
}

type SubscriptionList

type SubscriptionList []Subscription

Jump to

Keyboard shortcuts

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