social

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL