nop

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package nop is no-operation pubsub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client is no-operation pubsub client.

func New

func New() *Client

New to create new no-operation pubsub client.

func (*Client) Close

func (c *Client) Close() error

Close to do nothing.

func (*Client) Publish

func (c *Client) Publish(ctx context.Context, topic string, message []byte) error

Publish to do nothing.

func (*Client) Subscribe

func (c *Client) Subscribe(ctx context.Context, topic string, handlerFunc pubsub.HandlerFunc) error

Subscribe to do nothing.

func (*Client) Use

func (c *Client) Use(middlewares ...func(pubsub.HandlerFunc) pubsub.HandlerFunc)

Use to do nothing.

Jump to

Keyboard shortcuts

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