testutil

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package testutil provides utility functions and types for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	RoutesInfo() gin.RoutesInfo
}

Controller is an interface that defines the methods for a controller.

type ControllerBase

type ControllerBase struct {
	Router *gin.Engine
	Logger *slog.Logger
}

ControllerBase is a struct that provides a base for controllers.

func NewControllerBase

func NewControllerBase() *ControllerBase

NewControllerBase creates a new instance of ControllerBase.

func (*ControllerBase) SetupRouter

func (b *ControllerBase) SetupRouter(controller Controller)

SetupRouter sets up the router for the controller.

Jump to

Keyboard shortcuts

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