handler

package
v0.0.0-...-84ccec4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	Status bool
}

func NewHealth

func NewHealth() *Health

func (*Health) Die

func (h *Health) Die(c *fiber.Ctx) error

nolint: wrapcheck

func (*Health) Register

func (h *Health) Register(g fiber.Router)

type Hello

type Hello struct {
	Hostname        string
	GreetingMessage string

	Logger *zap.Logger
}

Hello handles the hello messages.

func NewHello

func NewHello(msg string, logger *zap.Logger) *Hello

NewHello creates a new instance of hello handler.

func (*Hello) Register

func (hh *Hello) Register(g fiber.Router)

Register registers routes of hello handler on given group.

func (*Hello) Say

func (hh *Hello) Say(c *fiber.Ctx) error

Say says hello to Raha. nolint: wrapcheck

Jump to

Keyboard shortcuts

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