Versions in this module Expand all Collapse all v3 v3.4.34 Nov 4, 2025 v3.4.33 Nov 4, 2025 v3.4.32 Nov 3, 2025 v3.4.31 Nov 3, 2025 v3.4.30 Nov 3, 2025 Changes in this version + func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error) + type Encryptor struct + BaseEncryptor *kernel.Encryptor + func NewEncryptor(appID, token, aesKey string) (*Encryptor, error) + func (encryptor Encryptor) DecryptData(encrypted string, sessionKey string, iv string) ([]byte, *support.CryptError) + type Http struct + BaseURI string + ProxyURI string + Timeout float64 + Transport http.RoundTripper + type Log struct + Driver contract.LoggerInterface + ENV string + Error string + File string + Level string + Stdout bool + type MiniProgram struct + AccessToken *auth.AccessToken + ActiveMessage *updatableMessage.Client + Auth *auth.Client + B2B *b2b.Client + Base *base.Client + Broadcast *liveBroadcast.Client + Config *kernel.Config + CustomerServiceMessage *customerServiceMessage.Client + DataCube *dataCube.Client + Delivery *immediateDelivery.Client + Device *device.Client + Encryptor *Encryptor + Express *express.Client + Image *image.Client + Internet *internet.Client + Logger *logger.Logger + MiniDramaVOD *vod.Client + NearbyPoi *nearbyPoi.Client + OCR *ocr.Client + Operation *operation.Client + PhoneNumber *phoneNumber.Client + Plugin *plugin.Client + RiskControl *riskControl.Client + Search *search.Client + Security *security.Client + Server *server.Guard + ServiceMarket *serviceMarket.Client + ShortLink *shortLink.Client + Soter *soter.Client + SubscribeMessage *subscribeMessage.Client + URLLink *urlLink.Client + URLScheme *urlScheme.Client + UniformMessage *uniformMessage.Client + UpdatableMessage *updatableMessage.Client + VirtualPayment *virtualPayment.Client + WXACode *wxaCode.Client + WXASecOrder *wxaSecOrder.Client + func NewMiniProgram(config *UserConfig, extraInfos ...*kernel.ExtraInfo) (*MiniProgram, error) + func (app *MiniProgram) GetAccessToken() *kernel.AccessToken + func (app *MiniProgram) GetComponent(name string) interface{} + func (app *MiniProgram) GetConfig() *kernel.Config + func (app *MiniProgram) GetContainer() *kernel.ServiceContainer + type OAuth struct + Callback string + Scopes []string + type UserConfig struct + AESKey string + AppID string + AppKey string + Cache kernel.CacheInterface + ComponentAppID string + ComponentAppToken string + Debug bool + ForceRefresh bool + Http Http + HttpDebug bool + Log Log + NotifyURL string + OAuth OAuth + OfferID string + RefreshToken string + ResponseType string + SandBoxKey string + Sandbox bool + Secret string + StableTokenMode bool + Token string