router

package
v0.0.0-...-bbdf5ee Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MQMethod = "MQ"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	context.Context
	crouter.RouterInfo
}

type Handle

type Handle func(ctx context.Context, client any, msg any, ps crouter.Params)

type MQRouter

type MQRouter struct {
	*crouter.Router
	// contains filtered or unexported fields
}

func NewMQRouter

func NewMQRouter() *MQRouter

func (*MQRouter) Handle

func (r *MQRouter) Handle(path string, h Handle)

func (*MQRouter) Serve

func (r *MQRouter) Serve(ctx context.Context, path string, client any, msg any)

Jump to

Keyboard shortcuts

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