controllers

package
v0.0.0-...-489d913 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ApiController

type ApiController struct {
	// contains filtered or unexported fields
}

func NewApiController

func NewApiController(
	createApi *benchmark.CreateApi,
) *ApiController

func (*ApiController) Get

func (a *ApiController) Get(c *fiber.Ctx) error

type ApiResponse

type ApiResponse struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type CreateApiRequest

type CreateApiRequest struct {
	Name    string `json:"name" validate:"required,max=32"`
	Latency int64  `json:"latency"`
}

Jump to

Keyboard shortcuts

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