Versions in this module Expand all Collapse all v3 v3.1.0 Feb 13, 2023 Changes in this version + const ChallengeResponseFormat + const ContentTypeHeader + const ContentTypeJson + const DefaultContentType + const EventRequestNonce + const EventRequestTimestamp + const EventSignature + const WebhookResponseFormat + func EventDecrypt(encrypt string, secret string) ([]byte, error) + func Signature(timestamp string, nonce string, eventEncryptKey string, body string) string + type DecryptErr struct + Message string + func (e DecryptErr) Error() string + type EventBase struct + Token string + Ts string + Type string + UUID string + type EventEncryptMsg struct + Encrypt string + type EventFuzzy struct + Challenge string + Encrypt string + Event ... + Header *EventHeader + Schema string + Token string + Type string + type EventHandler interface + Event func() interface{} + Handle func(context.Context, interface{}) error + type EventHandlerModel interface + RawReq func(req *EventReq) + type EventHeader struct + AppID string + CreateTime string + EventID string + EventType string + TenantKey string + Token string + type EventReq struct + Body []byte + Header map[string][]string + RequestURI string + func (req *EventReq) RequestId() string + type EventResp struct + Body []byte + Header http.Header + StatusCode int + type EventV1Header struct + AppID string + OpenAppID string + OpenID string + TenantKey string + Type string + type EventV2Base struct + Header *EventHeader + Schema string + func (base *EventV2Base) TenantKey() string + type EventV2Body struct + Challenge string + Event interface{} + Type string + type IReqHandler interface + Handle func(ctx context.Context, req *EventReq) *EventResp + Logger func() larkcore.Logger + type OptionFunc func(config *larkcore.Config) + func WithLogLevel(logLevel larkcore.LogLevel) OptionFunc + func WithLogger(logger larkcore.Logger) OptionFunc + func WithSkipSignVerify(skipSignVerify bool) OptionFunc + type ReqType string + const ReqTypeChallenge + const ReqTypeEventCallBack