jssdk

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jssdk

type Jssdk struct {
	// contains filtered or unexported fields
}

Jssdk 微信JSSDK

func New

func New(account contracts.AccountInterface, opts ...Option) *Jssdk

func (*Jssdk) BuildConfig

func (js *Jssdk) BuildConfig(jsApiList []string, debug, beta bool) map[string]interface{}

BuildConfig 构建jssdk配置信息

func (*Jssdk) SetUrl

func (js *Jssdk) SetUrl(url string) *Jssdk

type Option

type Option func(o *option)

func WithLocker

func WithLocker(locker lock.Locker) Option

type Ticket

type Ticket struct {
	Ticket    string `json:"ticket"`
	ExpiresIn int    `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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