controller

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(r *gin.Engine)

Types

type AddDeleteGetHostRequest

type AddDeleteGetHostRequest struct {
	Host          string                        `json:"host" binding:"required"`
	LatencyConfig *config.LatencyConfig         `json:"latency"`
	ErrorConfig   map[string]config.ErrorConfig `json:"errors"`
	UriConfig     map[string]config.UriConfig   `json:"uris"`
	// contains filtered or unexported fields
}

type AddDeleteMockRequest

type AddDeleteMockRequest struct {
	Host   string `header:"x-mock-host" binding:"required"`
	Uri    string `header:"x-mock-uri" binding:"required"`
	Method string `header:"x-mock-method" binding:"required"`
}

Jump to

Keyboard shortcuts

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