Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultHTTPOrigin is the default HTTP origin of traQ
DefaultHTTPOrigin = "https://q.trap.jp"
)
Variables ¶
This section is empty.
Functions ¶
func CalcHMACSHA1 ¶
CalcHMACSHA1 calculates an HMAC with SHA1
Types ¶
type TraqWebhookWriter ¶
type TraqWebhookWriter struct {
// contains filtered or unexported fields
}
TraqWebhookWriter implements io.Writer
func NewTraqWebhookWriter ¶
func NewTraqWebhookWriter(id, secret, origin string) *TraqWebhookWriter
NewTraqWebhookWriter returns a new pointer of TraqWebhookWriter
func (*TraqWebhookWriter) ResetChannelID ¶ added in v1.2.0
func (w *TraqWebhookWriter) ResetChannelID()
ResetChannelID resets a channel ID
func (*TraqWebhookWriter) SetChannelID ¶ added in v1.2.0
func (w *TraqWebhookWriter) SetChannelID(channelID string)
SetChannelID sets a channel ID
Click to show internal directories.
Click to hide internal directories.