Documentation ¶
Index ¶
- func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)
- type Log
- type OAuth
- type OfficialAccount
- func (app *OfficialAccount) GetAccessToken() *kernel.AccessToken
- func (app *OfficialAccount) GetComponent(name string) interface{}
- func (app *OfficialAccount) GetConfig() *kernel.Config
- func (app *OfficialAccount) GetContainer() *kernel.ServiceContainer
- func (app *OfficialAccount) GetExternalRequest() (r *http.Request)
- func (app *OfficialAccount) 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 OfficialAccount ¶
type OfficialAccount struct { *kernel.ServiceContainer Base *base.Client AccessToken *auth.AccessToken Config *kernel.Config Media *media.Client }
func NewOfficialAccount ¶
func NewOfficialAccount(config *UserConfig) (*OfficialAccount, error)
func (*OfficialAccount) GetAccessToken ¶
func (app *OfficialAccount) GetAccessToken() *kernel.AccessToken
func (*OfficialAccount) GetComponent ¶
func (app *OfficialAccount) GetComponent(name string) interface{}
func (*OfficialAccount) GetConfig ¶
func (app *OfficialAccount) GetConfig() *kernel.Config
func (*OfficialAccount) GetContainer ¶
func (app *OfficialAccount) GetContainer() *kernel.ServiceContainer
func (*OfficialAccount) GetExternalRequest ¶
func (app *OfficialAccount) GetExternalRequest() (r *http.Request)
func (*OfficialAccount) SetExternalRequest ¶
func (app *OfficialAccount) SetExternalRequest(r *http.Request)
Click to show internal directories.
Click to hide internal directories.