event

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalEventEmitter

func NewLocalEventEmitter(addressManager *rpc.AddressManager, rpcManager *rpc.RpcManager) event.EventEmitter

Types

type LocalEventEmitter

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

func (*LocalEventEmitter) Close

func (e *LocalEventEmitter) Close() error

func (*LocalEventEmitter) Emit

func (e *LocalEventEmitter) Emit(ctx context.Context, address *event.Address, msg *event.Package) error

func (*LocalEventEmitter) EmitLocal

func (e *LocalEventEmitter) EmitLocal(ctx context.Context, address *event.Address, pkg *event.Package) error

func (*LocalEventEmitter) Listen

func (e *LocalEventEmitter) Listen(address *event.Address, listener event.Listener)

func (*LocalEventEmitter) RemoveListener

func (e *LocalEventEmitter) RemoveListener(address *event.Address, listener event.Listener)

type RpcEventEmitter

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

func NewRpcEventEmitter

func NewRpcEventEmitter(localEventEmitter event.EventEmitter, rpcManager *rpc.RpcManager) (*RpcEventEmitter, error)

func (*RpcEventEmitter) Emit

type RpcEventEmitterRequest

type RpcEventEmitterRequest struct {
	ContextTimeout int
	Address        *event.Address
	Package        *event.Package
}

func NewRpcEventEmitterRequest

func NewRpcEventEmitterRequest() *RpcEventEmitterRequest

type RpcEventEmitterResponse

type RpcEventEmitterResponse struct {
	room.BasicRpcResponse
}

func NewRpcEventEmitterResponse

func NewRpcEventEmitterResponse() *RpcEventEmitterResponse

Jump to

Keyboard shortcuts

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