gochan

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	nc.ModelSubscriber
	// contains filtered or unexported fields
}

Proxy object with native implementation of message pools in GO

func New

func New(poolSize int, encoder ...encoder) *Proxy

New proxy object

func (*Proxy) Close

func (p *Proxy) Close() error

Close current proxy pool

func (*Proxy) Listen

func (p *Proxy) Listen(ctx context.Context) error

Listen starts processing queue

func (*Proxy) Publisher

func (p *Proxy) Publisher() Publisher

Publisher writer accessor

type Publisher

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

Publisher writer for GO proxy server

func (Publisher) Publish

func (p Publisher) Publish(ctx context.Context, messages ...any) error

Publish one or more messages to the pub-service

Jump to

Keyboard shortcuts

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