wx

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Driver *redis.Client
}

func (*Cache) Delete

func (c *Cache) Delete(key string) error

Delete 删除

func (*Cache) Get

func (c *Cache) Get(key string) interface{}

Get 获取一个值

func (*Cache) IsExist

func (c *Cache) IsExist(key string) bool

IsExist 判断key是否存在

func (*Cache) Set

func (c *Cache) Set(key string, val interface{}, timeout time.Duration) (err error)

Set 设置一个值

type Client

type Client struct {
	*wechat.Wechat
	// contains filtered or unexported fields
}

Client --

func NewClient

func NewClient() *Client

func (*Client) MiniProgram

func (c *Client) MiniProgram(group string) *miniprogram.MiniProgram

MiniProgram 获取实例

func (*Client) OfficialAccount

func (c *Client) OfficialAccount(group string) *officialaccount.OfficialAccount

OfficialAccount 获取实例

func (*Client) OpenPlatform

func (c *Client) OpenPlatform(group string) *openplatform.OpenPlatform

OfficialAccount 获取实例

func (*Client) SetMiniProgram

func (c *Client) SetMiniProgram(group string, cfg *programConfig.Config) *Client

SetMiniProgram 实例化

func (*Client) SetOfficialAccount

func (c *Client) SetOfficialAccount(group string, cfg *officialConfig.Config) *Client

SetOfficialAccount 实例化

func (*Client) SetOpenPlatform

func (c *Client) SetOpenPlatform(group string, cfg *openConfig.Config) *Client

SetOpenPlatform 实例化

type Proxy

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

Proxy 代理

func NewProxy

func NewProxy() *Proxy

NewProxy 代理池

func (*Proxy) NameSpace

func (proxy *Proxy) NameSpace(group string) *Client

NameSpace 获取分组

func (*Proxy) SetNameSpace

func (proxy *Proxy) SetNameSpace(group string, client *Client)

SetNameSpace 设置组

Jump to

Keyboard shortcuts

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