Documentation
¶
Index ¶
- type LiveNote
- func (n *LiveNote) IsExpired(now time.Time) bool
- func (n *LiveNote) ObjectID() string
- func (n *LiveNote) SetChannelID(channelID string)
- func (n *LiveNote) SetMessageID(messageID string)
- func (n *LiveNote) SetObject(object Object)
- func (n *LiveNote) SetPin(enabled bool)
- func (n *LiveNote) SetPostedTime(tt time.Time)
- func (n *LiveNote) SetTimeToLive(du time.Duration)
- type Object
- type Option
- type OptionChannel
- type OptionComment
- type OptionCompare
- type OptionOneTimeMention
- type OptionPin
- type OptionTimeToLive
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiveNote ¶
type LiveNote struct {
// MessageID is the unique identifier of the message
// for slack, it's the timestamp of the message
MessageID string `json:"messageId"`
ChannelID string `json:"channelId"`
Pin bool `json:"pin"`
TimeToLive time.Duration `json:"timeToLive"`
Object Object
// contains filtered or unexported fields
}
func NewLiveNote ¶
func (*LiveNote) SetChannelID ¶
func (*LiveNote) SetMessageID ¶
func (*LiveNote) SetPostedTime ¶
func (*LiveNote) SetTimeToLive ¶
type OptionChannel ¶
type OptionChannel struct {
Channel string
}
func Channel ¶
func Channel(channel string) *OptionChannel
type OptionComment ¶
func Comment ¶
func Comment(text string, users ...string) *OptionComment
type OptionCompare ¶
type OptionCompare struct {
Value bool
}
func CompareObject ¶
func CompareObject(value bool) *OptionCompare
type OptionOneTimeMention ¶
type OptionOneTimeMention struct {
Users []string
}
func OneTimeMention ¶
func OneTimeMention(users ...string) *OptionOneTimeMention
type OptionTimeToLive ¶
func TimeToLive ¶
func TimeToLive(du time.Duration) *OptionTimeToLive
Click to show internal directories.
Click to hide internal directories.