Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTestcaseScenarios ¶
func RunTestcaseScenarios[REQUEST, RESPONSE, OUTPORT any](t *testing.T, f func(o OUTPORT) Inport[REQUEST, RESPONSE], scenarioList ...TestScenario[REQUEST, RESPONSE, OUTPORT])
Types ¶
type ApplicationData ¶
type ApplicationData struct { AppName string `json:"app_name"` AppInstanceID string `json:"app_instance_id"` StartTime string `json:"start_time"` }
func NewApplicationData ¶
func NewApplicationData(appName string) ApplicationData
type BaseController ¶
type BaseController struct {
// contains filtered or unexported fields
}
func (*BaseController) AddUsecase ¶
func (r *BaseController) AddUsecase(inports ...any)
func (*BaseController) GetUsecase ¶
func (r *BaseController) GetUsecase(nameStructType any) (any, error)
type ControllerRegisterer ¶
type ControllerRegisterer interface { ControllerStarter UsecaseRegisterer RegisterRouter() RegisterMetrics(serviceName string) }
type ControllerStarter ¶
type ControllerStarter interface {
Start()
}
type Inport ¶
type TestScenario ¶
type UsecaseRegisterer ¶
type UsecaseRegisterer interface { AddUsecase(inports ...any) GetUsecase(nameStructType any) (any, error) }
func NewBaseController ¶
func NewBaseController() UsecaseRegisterer
Click to show internal directories.
Click to hide internal directories.