Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { kernel.ApplicationInterface *miniProgram.MiniProgram AccessToken *auth.AccessToken Auth *auth2.Client }
func NewApplication ¶
func NewApplication(config *UserConfig, extraInfos ...*kernel.ExtraInfo) (*Application, error)
func (*Application) GetAccessToken ¶
func (app *Application) GetAccessToken() *kernel.AccessToken
func (*Application) GetComponent ¶
func (app *Application) GetComponent(name string) interface{}
func (*Application) GetConfig ¶
func (app *Application) GetConfig() *kernel.Config
func (*Application) GetContainer ¶
func (app *Application) GetContainer() *kernel.ServiceContainer
type UserConfig ¶
type UserConfig struct { MiniProgramUserConfig *miniProgram.UserConfig CorpID string AgentID int Secret string Token string AESKey string CallbackURL string Http *object.HashMap }
Click to show internal directories.
Click to hide internal directories.