Documentation
¶
Index ¶
Constants ¶
View Source
const ( DisplayName = "Enchant" HandlerKey = "enchant" MessageDirection = "out" MessageBodyType = models.JSON )
Variables ¶
This section is empty.
Functions ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData) (cc.Message, error)
func NewHandler ¶
func Normalize ¶
func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
Types ¶
type EnchantData ¶
type EnchantModel ¶
type EnchantModel struct {
ID string `json:"id,omitempty"`
Number int64 `json:"number,omitempty"`
UserID string `json:"user_id,omitempty"`
State string `json:"state,omitempty"`
Subject string `json:"subject,omitempty"`
LabelIDs []string `json:"label_ids,omitempty"`
CustomerID string `json:"customer_id,omitempty"`
Type string `json:"type,omitempty"`
ReplyTo string `json:"reply_to,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
}
type EnchantOutMessage ¶
type EnchantOutMessage struct {
ID string `json:"id,omitempty"`
AccountID string `json:"account_id,omitempty"`
AccountURL string `json:"account_url,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
Type string `json:"type,omitempty"`
Data EnchantData `json:"data,omitempty"`
ActorType string `json:"actor_type,omitempty"`
ActorID string `json:"actor_id,omitempty"`
ActorName string `json:"actor_name,omitempty"`
ModelType string `json:"model_type,omitempty"`
ModelID string `json:"model_id,omitempty"`
Model EnchantModel `json:"model,omitempty"`
}
func EnchantOutMessageFromBytes ¶
func EnchantOutMessageFromBytes(bytes []byte) (EnchantOutMessage, error)
Click to show internal directories.
Click to hide internal directories.