resthandlers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRestfulHandlersLoaded

func IsRestfulHandlersLoaded() bool

IsRestfulHandlersLoaded boolean

func LoadRestfulHandlers

func LoadRestfulHandlers(app router.Party, baseRoute string, handlersManager HandlersManager)

LoadRestfulHandlers resthandlers handler, the method would affects unique load

Types

type Handler

type Handler interface {
	GetGroup() string
	GetName() string
	GetRoutingKey() string
	GetSummary() string
	GetDescription() string
	GetOperationID() string
	GetAllowsMethod() string
	Execute(mqenv.MQConsumerMessage) *mqenv.MQPublishMessage
	IsDisablesAuthorization() bool
}

Handler interface of handler defination

type HandlersManager

type HandlersManager interface {
	GetHandler(routingKey string) Handler
}

HandlersManager interfaces of handler manager

Jump to

Keyboard shortcuts

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