handler

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	CMQ    *cmq.CMQ
	Logger *zap.Logger
	Tracer trace.Tracer
}

func (Event) Receive

func (h Event) Receive(c *fiber.Ctx) error

Receive receives event from api and publish them to jetstream. nolint: wrapcheck

func (Event) Register

func (h Event) Register(g fiber.Router)

Register registers the routes of event handler on given fiber group.

type Healthz

type Healthz struct {
	Logger *zap.Logger
	Tracer trace.Tracer
}

func (Healthz) Handle

func (h Healthz) Handle(c *fiber.Ctx) error

Handle shows server is up and running. nolint: wrapcheck

func (Healthz) Register

func (h Healthz) Register(g fiber.Router)

Register registers the routes of healthz handler on given fiber group.

Jump to

Keyboard shortcuts

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