Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a spark client
func (*Client) FindRoomByName ¶
FindRoomByName returns a spark room with specified name
func (*Client) PostFileMessage ¶
PostFileMessage posts a message with attachment to spark
func (*Client) PostMessage ¶
PostMessage posts a message to spark
type Message ¶
type Message struct { RoomId string `json:"roomId,omitempty"` ToPersonEmail string `json:"toPersonEmail,omitempty"` Text string `json:"text,omitempty"` Markdown string `json:"markdown,omitempty"` Files string `json:"files,omitempty"` }
Message represents a spark message
type Room ¶
type Room struct { Id string `json:"id"` Title string `json:"title"` Type string `json:"type"` IsLocked bool `json:"isLocked"` TeamId string `json:"teamId,omitempty"` CreatorId string `json:"creatorId"` Created time.Time `json:"created"` LastActivity time.Time `json:"lastActivity"` }
Room represents a spark room
Click to show internal directories.
Click to hide internal directories.