Documentation ¶
Index ¶
- func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)
- type Encryptor
- type Log
- type MiniProgram
- 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
- func (app *MiniProgram) GetExternalRequest() (r *http.Request)
- func (app *MiniProgram) SetExternalRequest(r *http.Request)
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapUserConfig ¶
func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)
Types ¶
type Encryptor ¶ added in v1.2.3
type Encryptor struct {
// contains filtered or unexported fields
}
func (Encryptor) DecryptData ¶ added in v1.2.3
type MiniProgram ¶
type MiniProgram struct { *kernel.ServiceContainer Base *base.Client AccessToken *auth.AccessToken Auth *auth.Client ActiveMessage *updatableMessage.Client Encryptor *Encryptor Broadcast *liveBroadcast.Client CustomerServiceMessage *customerServiceMessage.Client DataCube *dataCube.Client UniformMessage *uniformMessage.Client Image *image.Client Internet *internet.Client Express *express.Client Delivery *immediateDelivery.Client OCR *ocr.Client Operation *operation.Client Plugin *plugin.Client PhoneNumber *phoneNumber.Client NearbyPoi *nearbyPoi.Client WXACode *wxaCode.Client URLScheme *urlScheme.Client URLLink *urlLink.Client Security *security.Client Search *search.Client ServiceMarket *serviceMarket.Client SubscribeMessage *subscribeMessage.Client ShortLink *shortLink.Client Soter *soter.Client UpdatableMessage *updatableMessage.Client RiskControl *riskControl.Client Config *kernel.Config }
func NewMiniProgram ¶
func NewMiniProgram(config *UserConfig) (*MiniProgram, error)
func (*MiniProgram) GetAccessToken ¶
func (app *MiniProgram) GetAccessToken() *kernel.AccessToken
func (*MiniProgram) GetComponent ¶
func (app *MiniProgram) GetComponent(name string) interface{}
func (*MiniProgram) GetConfig ¶
func (app *MiniProgram) GetConfig() *kernel.Config
func (*MiniProgram) GetContainer ¶
func (app *MiniProgram) GetContainer() *kernel.ServiceContainer
func (*MiniProgram) GetExternalRequest ¶
func (app *MiniProgram) GetExternalRequest() (r *http.Request)
func (*MiniProgram) SetExternalRequest ¶
func (app *MiniProgram) SetExternalRequest(r *http.Request)
type UserConfig ¶
Click to show internal directories.
Click to hide internal directories.