Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RuleDTO ¶
type RuleDTO struct { ID int64 `json:"id"` Service string `json:"service"` Priority int64 `json:"priority"` MatcherRegex []string `json:"matcher_regexes"` IdentityRegex string `json:"identity_regex"` Template string `json:"template"` Timeout string `json:"timeout_duration"` ResponseStatus int `json:"response_status"` IsReadOnly bool `json:"read_only"` }
RuleDTO is DTO for rule
func RuleToFullDTO ¶
RuleToFullDTO converts rule to DTO with all of its fields
func RulesToDTO ¶
RulesToDTO converts slice of rules to DTOs
Click to show internal directories.
Click to hide internal directories.