Documentation ¶
Index ¶
- type OauthManger
- func (g *OauthManger) CheckOauthToken(ctx context.Context, partnerKey string, token string) error
- func (g *OauthManger) DeletePartner(ctx context.Context, partnerKey string) error
- func (g *OauthManger) GenOauthToken(ctx context.Context, partnerKey string, paratnerSecret string) (*db_base.OauthToken, error)
- func (g *OauthManger) GenPartner(ctx context.Context, PartnerName string, expire int64) (*db_base.Partner, error)
- func (g *OauthManger) GetPartnerByKey(ctx context.Context, partnerKey string) (*db_base.Partner, error)
- func (g *OauthManger) StartDeleteExpireTokenProcess() error
- func (g *OauthManger) WithMysql(config *mysql_db.MysqlDbConfig) *OauthManger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OauthManger ¶
type OauthManger struct {
// contains filtered or unexported fields
}
func GetOauthManager ¶
func GetOauthManager() *OauthManger
func (*OauthManger) CheckOauthToken ¶
func (*OauthManger) DeletePartner ¶
func (g *OauthManger) DeletePartner(ctx context.Context, partnerKey string) error
func (*OauthManger) GenOauthToken ¶
func (g *OauthManger) GenOauthToken(ctx context.Context, partnerKey string, paratnerSecret string) (*db_base.OauthToken, error)
func (*OauthManger) GenPartner ¶
func (*OauthManger) GetPartnerByKey ¶
func (*OauthManger) StartDeleteExpireTokenProcess ¶
func (g *OauthManger) StartDeleteExpireTokenProcess() error
func (*OauthManger) WithMysql ¶
func (g *OauthManger) WithMysql(config *mysql_db.MysqlDbConfig) *OauthManger
Click to show internal directories.
Click to hide internal directories.