Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Manager = &SocialManager{ Services: make(map[string]SocialService, 10), }
Functions ¶
func RegisterSocialService ¶
func RegisterSocialService(social string, service SocialService) error
Types ¶
type SocialManager ¶
type SocialManager struct {
Services map[string]SocialService
}
func (*SocialManager) GetSocialService ¶
func (m *SocialManager) GetSocialService(social string) SocialService
func (*SocialManager) RegisterSocialService ¶
func (m *SocialManager) RegisterSocialService(social string, service SocialService) error
type SocialService ¶
type SocialService interface {
GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *domain.SocialUser
}
func GetSocialService ¶
func GetSocialService(social string) SocialService
Click to show internal directories.
Click to hide internal directories.