Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicAuth ¶
type Parameters ¶
type Parameters struct { URL string `bson:"url" json:"url" binding:"required"` Method string `bson:"method" json:"method" binding:"required,oneof=GET HEAD POST PUT PATCH DELETE CONNECT OPTIONS TRACE"` Auth *BasicAuth `bson:"auth,omitempty" json:"auth"` Headers map[string]string `bson:"headers,omitempty" json:"headers"` Payload string `bson:"payload,omitempty" json:"payload"` SkipVerify bool `bson:"skip_verify" json:"skip_verify"` Timeout *datetime.DurationWithUnit `bson:"timeout,omitempty" json:"timeout"` RetryCount int64 `bson:"retry_count,omitempty" json:"retry_count"` RetryDelay *datetime.DurationWithUnit `bson:"retry_delay,omitempty" json:"retry_delay"` }
func ExecuteTemplates ¶
func ExecuteTemplates( params Parameters, templateExecutor template.Executor, tplData any, ) (Parameters, error)
type ParsedParameters ¶
type ParsedParameters struct { URL template.ParsedTemplate Method string Auth *BasicAuth Headers map[string]string Payload template.ParsedTemplate SkipVerify bool Timeout *datetime.DurationWithUnit RetryCount int64 RetryDelay *datetime.DurationWithUnit }
type TemplateErr ¶
type TemplateErr struct {
// contains filtered or unexported fields
}
func (TemplateErr) Error ¶
func (e TemplateErr) Error() string
func (TemplateErr) Field ¶
func (e TemplateErr) Field() string
type WebhookDeclareTicket ¶
type WebhookDeclareTicket struct { EmptyResponse bool `bson:"empty_response" json:"empty_response"` IsRegexp bool `bson:"is_regexp" json:"is_regexp"` TicketID string `bson:"ticket_id,omitempty" json:"ticket_id"` TicketIDTpl string `bson:"ticket_id_tpl,omitempty" json:"ticket_id_tpl"` TicketURL string `bson:"ticket_url,omitempty" json:"ticket_url"` TicketURLTpl string `bson:"ticket_url_tpl,omitempty" json:"ticket_url_tpl"` TicketURLTitle string `bson:"ticket_url_title,omitempty" json:"ticket_url_title"` CustomFields map[string]string `bson:",inline"` }
func (WebhookDeclareTicket) MarshalJSON ¶
func (t WebhookDeclareTicket) MarshalJSON() ([]byte, error)
func (*WebhookDeclareTicket) UnmarshalJSON ¶
func (t *WebhookDeclareTicket) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.