http

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

type Bus[T any] interface {
	Send(ctx context.Context, inbox string, msg T) (err error)
	Recv(ctx context.Context, inbox string) (msgs <-chan T, err error)
}

type HttpSignalServiceImpl

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

func NewHttpSignalServiceImpl

func NewHttpSignalServiceImpl(bus Bus[string]) *HttpSignalServiceImpl

func (*HttpSignalServiceImpl) Recv

func (h *HttpSignalServiceImpl) Recv(ctx context.Context, inbox string) (msgs <-chan string, err error)

func (*HttpSignalServiceImpl) Send

func (h *HttpSignalServiceImpl) Send(ctx context.Context, inbox string, msg string) (err error)

type MemoryBus

type MemoryBus[T any] struct {
	// contains filtered or unexported fields
}

func NewMemoryBus

func NewMemoryBus[T any]() *MemoryBus[T]

func (*MemoryBus[T]) Recv

func (m *MemoryBus[T]) Recv(ctx context.Context, inbox string) (msgs <-chan T, err error)

func (*MemoryBus[T]) Send

func (m *MemoryBus[T]) Send(ctx context.Context, inbox string, msg T) (err error)

Jump to

Keyboard shortcuts

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