Documentation
¶
Index ¶
- Constants
- func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
- func NewHandler() handlers.Handler
- func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
- type ConfluenceComment
- type ConfluenceOutMessage
- type ConfluencePage
Constants ¶
View Source
const ( DisplayName = "Confluence" HandlerKey = "confluence" MessageDirection = "out" MessageBodyType = models.JSON )
Variables ¶
This section is empty.
Functions ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
func NewHandler ¶
func Normalize ¶
func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
Types ¶
type ConfluenceComment ¶
type ConfluenceComment struct {
ID int64 `json:"id,omitempty"`
SpaceKey string `json:"spaceKey,omitempty"`
Parent ConfluencePage `json:"parent,omitempty"`
ModificationDate int64 `json:"modificationDate,omitempty"`
CreatorKey string `json:"creatorKey,omitempty"`
CreatorName string `json:"creatorName,omitempty"`
LastModifierKey string `json:"lastModifierKey,omitempty"`
Self string `json:"self,omitempty"`
LastModifierName string `json:"lastModifierName,omitempty"`
CreationDate int64 `json:"creationDate,omitempty"`
Version int64 `json:"version,omitempty"`
}
func (*ConfluenceComment) IsCreated ¶
func (comment *ConfluenceComment) IsCreated() bool
func (*ConfluenceComment) IsUpdated ¶
func (comment *ConfluenceComment) IsUpdated() bool
type ConfluenceOutMessage ¶
type ConfluenceOutMessage struct {
User string `json:"user,omitempty"`
UserKey string `json:"userKey,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Username string `json:"username,omitempty"`
Page ConfluencePage `json:"page,omitempty"`
Comment ConfluenceComment `json:"comment,omitempty"`
}
func ConfluenceOutMessageFromBytes ¶
func ConfluenceOutMessageFromBytes(bytes []byte) (ConfluenceOutMessage, error)
func (*ConfluenceOutMessage) IsComment ¶
func (msg *ConfluenceOutMessage) IsComment() bool
type ConfluencePage ¶
type ConfluencePage struct {
ID int64 `json:"id,omitempty"`
SpaceKey string `json:"spaceKey,omitempty"`
ModificationDate int64 `json:"modificationDate,omitempty"`
CreatorKey string `json:"creatorKey,omitempty"`
CreatorName string `json:"creatorName,omitempty"`
LastModifierKey string `json:"lastModifierKey,omitempty"`
Self string `json:"self,omitempty"`
LastModifierName string `json:"lastModifierName,omitempty"`
Title string `json:"title,omitempty"`
CreationDate int64 `json:"creationDate,omitempty"`
Version int64 `json:"version,omitempty"`
}
func (*ConfluencePage) IsCreated ¶
func (page *ConfluencePage) IsCreated() bool
func (*ConfluencePage) IsUpdated ¶
func (page *ConfluencePage) IsUpdated() bool
Click to show internal directories.
Click to hide internal directories.