subscribe

package
v0.0.0-...-48d2764 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscribe

type Subscribe struct {
	Subject    string `json:"subject,omitempty"`
	Method     string `json:"method,omitempty"`
	URL        string `json:"path,omitempty"`
	QueueGroup string `json:"queue_group,omitempty"`
	// contains filtered or unexported fields
}

func ParseSubscribeHandler

func ParseSubscribeHandler(d *caddyfile.Dispenser) (*Subscribe, error)

ParseSubscribeHandler parses the subscribe directive. Syntax:

subscribe subjectPattern HTTPMethod HTTPURL {
    [queue queueGroupName]
}

func (Subscribe) CaddyModule

func (Subscribe) CaddyModule() caddy.ModuleInfo

func (*Subscribe) Provision

func (s *Subscribe) Provision(ctx caddy.Context) error

func (*Subscribe) Subscribe

func (s *Subscribe) Subscribe(conn *nats.Conn) error

func (*Subscribe) Unsubscribe

func (s *Subscribe) Unsubscribe(conn *nats.Conn) error

Jump to

Keyboard shortcuts

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