config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentId, _ = strconv.ParseInt(os.Getenv("AGENT_ID"), 10, 64)
View Source
var CorpId = os.Getenv("CORP_ID")
View Source
var CorpSecret = os.Getenv("CORP_SECRET")
View Source
var GetTokenUrl = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ID&corpsecret=SECRET"
View Source
var MediaId = os.Getenv("MEDIA_ID")
View Source
var SendMsgUrl = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN"

Functions

This section is empty.

Types

type ApiRequest

type ApiRequest struct {
	HttpMethod     string            `json:"httpMethod"`
	QueryString    map[string]string `json:"queryString"`
	Body           string            `json:"body"`
	PathParameters map[string]string `json:"pathParameters"`
}

type SimpleRequest

type SimpleRequest struct {
	Title   string
	Content string
	Digest  string
}

func ParseRequest

func ParseRequest(event map[string]interface{}) (*SimpleRequest, error)

Jump to

Keyboard shortcuts

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