http

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Crypto  *crypto.Client
	Storage *storage.Storage
}

Handler manages the endpoints implementations.

func (*Handler) Get

func (h *Handler) Get(ctx *fiber.Ctx) error

Get request for getting crypto prizes.

func (*Handler) Health added in v0.1.1

func (h *Handler) Health(ctx *fiber.Ctx) error

Health returns service status.

type Response

type Response struct {
	Name  string  `json:"name"`
	Price float32 `json:"price"`
}

Response stores data of user request result.

Jump to

Keyboard shortcuts

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