Documentation
¶
Index ¶
Constants ¶
View Source
const PullDefaultTimeoutMs = 30000
View Source
const (
//ServiceID represents a data store unit service id
ServiceID = "slack"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
type Asset struct {
Title string
Filename string
Type string
Content string
Data interface{} //content data structure
BinaryContent []byte
}
Asset represents a file asset
type ListenRequest ¶
type ListenRequest struct {
Credentials string
Channels []string
// contains filtered or unexported fields
}
ListenRequest represents a listen request
func (*ListenRequest) Validate ¶
func (r *ListenRequest) Validate() error
Validate check if a request is valid
type Message ¶
Message represent a slack message
func NewMessageFromEvent ¶
NewMessageFromEvent creates a new message form a message event
type Messages ¶
type Messages struct {
// contains filtered or unexported fields
}
Messages messages holder
type PostRequest ¶
PostRequest represents post request
func (*PostRequest) Validate ¶
func (r *PostRequest) Validate() error
Validate check if a request is valid
type PostResponse ¶
PostResponse represnets a post response
type PullRequest ¶
AssertRequest represents assert request
type PullResponse ¶
type PullResponse struct {
Messages []*Message
Assert *validator.AssertResponse
}
AssertResponse represents assert response
Click to show internal directories.
Click to hide internal directories.