model

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LarkRequestTimestamp    = "X-Lark-Request-Timestamp"
	LarkRequestRequestNonce = "X-Lark-Request-Nonce"
	LarkSignature           = "X-Lark-Signature"
	LarkRefreshToken        = "X-Refresh-Token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Value    map[string]string `json:"value"`
	Tag      string            `json:"tag"`
	Option   string            `json:"option"`
	Timezone string            `json:"timezone"`
}

type Base

type Base struct {
	OpenID        string `json:"open_id"`
	UserID        string `json:"user_id"`
	OpenMessageID string `json:"open_message_id"`
	TenantKey     string `json:"tenant_key"`
	Token         string `json:"token"`
	Timezone      string `json:"timezone"`
}

type Card

type Card struct {
	*Base
	Action *Action `json:"action"`
}

type Challenge

type Challenge struct {
	Challenge string `json:"challenge"`
	Token     string `json:"token"`
	Type      string `json:"type"`
}

type HTTPCard

type HTTPCard struct {
	Header       *Header
	HTTPRequest  *http.Request
	Input        []byte
	HTTPResponse http.ResponseWriter
	Type         constants.CallbackType
	Output       interface{}
	Challenge    string
	Err          error
}
type Header struct {
	Timestamp    string
	Nonce        string
	Signature    string
	RefreshToken string
	RequestID    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL