vcontroller

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 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 BaseController

type BaseController struct {
	Metric *vmetric.Metric
}

func NewBaseController

func NewBaseController(p BaseControllerParam) *BaseController

func (*BaseController) BindBody

func (controller *BaseController) BindBody(c *vapi.Context, req any) (err error)

type BaseControllerParam

type BaseControllerParam struct {
	vfx.In

	Metric *vmetric.Metric
}

type HealthController

type HealthController struct {
	Engine *vapi.Engine
}

func NewHealthController

func NewHealthController(p HealthControllerParam) *HealthController

func (*HealthController) Check

func (controller *HealthController) Check(c *vapi.Context)

func (*HealthController) Route

func (controller *HealthController) Route()

type HealthControllerParam

type HealthControllerParam struct {
	vfx.In

	Engine *vapi.Engine
}

type IBaseController

type IBaseController interface {
	Route()
}

Jump to

Keyboard shortcuts

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