js

package
v0.0.0-...-a0c205e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CorpId    string `json:"corp_id"`  // 企业ID
	AgentId   string `json:"agent_id"` // 应用ID
	Timestamp int64  `json:"timestamp"`
	NonceStr  string `json:"nonce_str"`
	Signature string `json:"signature"`
}

type Js

func NewJs

func NewJs(context *context.Context) *Js

func (*Js) GetConfig

func (js *Js) GetConfig(uri string) (config *Config, err error)

GetConfig 获取jssdk需要的配置参数 uri 为当前网页地址

func (*Js) SetJsTicketHandle

func (js *Js) SetJsTicketHandle(ticketHandle credential.WorkJsTicketHandle)

Jump to

Keyboard shortcuts

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