Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteSchema ¶
DeleteSchema struct to represent a new route
type Method ¶
type Method map[string][]MethodValue
Method contains a method and a list of MethodValue for multiple matching for the same route
type MethodValue ¶
type MethodValue struct { // Matching variables Headers map[string]string Parameters map[string]string // Response value ResponseCode int Response any ResponseHeaders map[string]string }
MethodValue stores the matching rules and payload for an specific method
type RegisterSchema ¶
type RegisterSchema struct { Route string `json:"route"` Methods []string `json:"methods"` Headers map[string]string `json:"headers"` Parameters map[string]string `json:"parameters"` Response any `json:"response"` ResponseCode int `json:"response_code,default=200"` ResponseHeaders map[string]string `json:"response_headers"` }
RegisterSchema struct to represent a new route
Click to show internal directories.
Click to hide internal directories.