Documentation
¶
Index ¶
Constants ¶
View Source
const (
CurrentVersion = 1
)
Variables ¶
View Source
var ErrWorkerProfileDisabled = errors.New("iris bot webhook worker profile is disabled")
Functions ¶
This section is empty.
Types ¶
type IrisBotWebhookWorkerProfile ¶
type IrisBotWebhookWorkerProfile struct {
Version int `json:"version"`
ProfileID string `json:"profile_id"`
Delivery irisWebhookDeliveryWorkerProfile `json:"delivery"`
Receive botWebhookReceiveWorkerProfile `json:"receive"`
BotPool botPoolWorkerProfile `json:"bot_pool"`
Validation irisBotWebhookWorkerProfileValidation `json:"validation"`
}
func DecodeIrisBotWebhookWorkerProfileFromRuntimeDiagnostics ¶
func DecodeIrisBotWebhookWorkerProfileFromRuntimeDiagnostics(reader io.Reader) (IrisBotWebhookWorkerProfile, error)
func DefaultIrisBotWebhookWorkerProfile ¶ added in v1.29.0
func DefaultIrisBotWebhookWorkerProfile() IrisBotWebhookWorkerProfile
func (IrisBotWebhookWorkerProfile) CanonicalJSON ¶
func (p IrisBotWebhookWorkerProfile) CanonicalJSON() []byte
func (IrisBotWebhookWorkerProfile) ProfileHash ¶
func (p IrisBotWebhookWorkerProfile) ProfileHash() string
func (IrisBotWebhookWorkerProfile) Validate ¶
func (p IrisBotWebhookWorkerProfile) Validate() error
type RuntimeWorkerProfileEnvelope ¶ added in v1.29.0
type RuntimeWorkerProfileEnvelope struct {
ProfileID string
ProfileVersion int
ProducerHash string
Profile IrisBotWebhookWorkerProfile
}
RuntimeWorkerProfileEnvelope는 Iris diagnostics가 게시한 profile identity와 payload를 함께 보존한다.
func DecodeRuntimeWorkerProfileEnvelope ¶ added in v1.29.0
func DecodeRuntimeWorkerProfileEnvelope(reader io.Reader) (RuntimeWorkerProfileEnvelope, error)
DecodeRuntimeWorkerProfileEnvelope는 Iris runtime diagnostics의 worker profile envelope를 해석한다.
Click to show internal directories.
Click to hide internal directories.