router

package module
v0.0.0-...-86ef1ca Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

README

License Apache-2.0 Go version GoDoc Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc func(context.Context, *nats.Msg)

type Router

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

func New

func New(ctx context.Context, nc *nats.Conn, buffersize uint) Router

func (*Router) Route

func (r *Router) Route(subject string, handler HandlerFunc)

Add a new route to the routing table and start listening on it

Jump to

Keyboard shortcuts

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