Documentation ¶
Index ¶
- Constants
- func EventDecrypt(encrypt string, secret string) ([]byte, error)
- func Signature(timestamp string, nonce string, eventEncryptKey string, body string) string
- type CallbackHandler
- type DecryptErr
- type EventBase
- type EventEncryptMsg
- type EventFuzzy
- type EventHandler
- type EventHandlerModel
- type EventHeader
- type EventReq
- type EventResp
- type EventV1Header
- type EventV2Base
- type EventV2Body
- type IReqHandler
- type OptionFunc
- type ReqType
Constants ¶
View Source
const ( EventRequestNonce = "X-Lark-Request-Nonce" EventRequestTimestamp = "X-Lark-Request-Timestamp" EventSignature = "X-Lark-Signature" )
View Source
const ChallengeResponseFormat = `{"challenge":"%s"}`
View Source
const ContentTypeHeader = "Content-Type"
View Source
const ContentTypeJson = "application/json"
View Source
const DefaultContentType = ContentTypeJson + "; charset=utf-8"
View Source
const WebhookResponseFormat = `{"msg":"%s"}`
Variables ¶
This section is empty.
Functions ¶
func EventDecrypt ¶
eventDecrypt returns decrypt bytes
Types ¶
type CallbackHandler ¶ added in v3.3.3
type DecryptErr ¶
type DecryptErr struct {
Message string
}
func (DecryptErr) Error ¶
func (e DecryptErr) Error() string
type EventEncryptMsg ¶
type EventEncryptMsg struct {
Encrypt string `json:"encrypt"`
}
type EventFuzzy ¶
type EventHandler ¶
type EventHandlerModel ¶
type EventHandlerModel interface {
RawReq(req *EventReq)
}
type EventHeader ¶
type EventV1Header ¶
type EventV2Base ¶
type EventV2Base struct { Schema string `json:"schema"` // 事件模式 Header *EventHeader `json:"header"` // 事件头 }
func (*EventV2Base) TenantKey ¶ added in v3.0.1
func (base *EventV2Base) TenantKey() string
type EventV2Body ¶
type EventV2Body struct { EventV2Base Challenge string `json:"challenge"` Event interface{} `json:"event"` Type string `json:"type"` }
type IReqHandler ¶
type OptionFunc ¶
type OptionFunc func(config *larkcore.Config)
func WithLogLevel ¶
func WithLogLevel(logLevel larkcore.LogLevel) OptionFunc
func WithLogger ¶
func WithLogger(logger larkcore.Logger) OptionFunc
func WithSkipSignVerify ¶ added in v3.0.11
func WithSkipSignVerify(skipSignVerify bool) OptionFunc
Directories ¶
Path | Synopsis |
---|---|
Package dispatcher code generated by oapi sdk gen
|
Package dispatcher code generated by oapi sdk gen |
Click to show internal directories.
Click to hide internal directories.