Documentation ¶
Index ¶
- Variables
- type MeetingPlatformService
- func (m *MeetingPlatformService) Delete(ID uint) error
- func (m *MeetingPlatformService) GetAll() ([]*domain.MeetingPlatform, error)
- func (m *MeetingPlatformService) GetByID(ID uint) (*domain.MeetingPlatform, error)
- func (m *MeetingPlatformService) GetByPlatformName(name string) (*domain.MeetingPlatform, error)
- func (m *MeetingPlatformService) GetOAuthToken(ctx context.Context, authorization string, platform *domain.MeetingPlatform) (*oauth2.Token, error)
- func (m *MeetingPlatformService) RefreshOAuthToken(ctx context.Context, token *oauth2.Token, platform *domain.MeetingPlatform) (*oauth2.Token, error)
- func (m *MeetingPlatformService) Save(meetingProvider *domain.MeetingPlatform) (uint, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ProviderSet provides a MeetingPlatformService. ProviderSet = wire.NewSet(Provide, wire.Bind(new(domain.MeetingPlatformService), new(*MeetingPlatformService))) )
Functions ¶
This section is empty.
Types ¶
type MeetingPlatformService ¶
type MeetingPlatformService struct {
// contains filtered or unexported fields
}
MeetingPlatformService manages processing information for MeetingPlatforms as well as OAuth authentication for MeetingPlatforms.
func New ¶
func New(repository domain.MeetingPlatformRepository, configuredPlatforms domain.ConfiguredPlatforms) *MeetingPlatformService
New returns a MeetingPlatformService that is backed by the provided repository and contains the provided ConfiguredPlatforms.
func Provide ¶
func Provide(repository domain.MeetingPlatformRepository, configuredPlatforms domain.ConfiguredPlatforms) *MeetingPlatformService
Provide returns a MeetingPlatformService configured with the provided MeetingPlatformRepository and ConfiguredPlatforms.
func (*MeetingPlatformService) Delete ¶
func (m *MeetingPlatformService) Delete(ID uint) error
Delete deletes a MeetingPlatform in the repository with the given ID.
func (*MeetingPlatformService) GetAll ¶
func (m *MeetingPlatformService) GetAll() ([]*domain.MeetingPlatform, error)
GetAll retrieves all MeetingPlatforms form the repository as an aggregate with the ConfiguredPlatforms.
func (*MeetingPlatformService) GetByID ¶
func (m *MeetingPlatformService) GetByID(ID uint) (*domain.MeetingPlatform, error)
GetByID retrieves the MeetingPlatform from the repository with the given ID as an aggregate matched with the corresponding ConfiguredPlatform.
func (*MeetingPlatformService) GetByPlatformName ¶
func (m *MeetingPlatformService) GetByPlatformName(name string) (*domain.MeetingPlatform, error)
GetByPlatformName retrieves the MeetingPlatform from the repository with the given name as an aggregate matched with the corresponding ConfiguredPlatform.
func (*MeetingPlatformService) GetOAuthToken ¶
func (m *MeetingPlatformService) GetOAuthToken(ctx context.Context, authorization string, platform *domain.MeetingPlatform) (*oauth2.Token, error)
GetOAuthToken retrieves a AuthToken from a MeetingPlatform by exchanging the provided authorization.
func (*MeetingPlatformService) RefreshOAuthToken ¶
func (m *MeetingPlatformService) RefreshOAuthToken(ctx context.Context, token *oauth2.Token, platform *domain.MeetingPlatform) (*oauth2.Token, error)
RefreshOAuthToken refreshes the provided AuthToken against the provided MeetingPlatform and returns the new AuthToken.
func (*MeetingPlatformService) Save ¶
func (m *MeetingPlatformService) Save(meetingProvider *domain.MeetingPlatform) (uint, error)
Save creates a new MeetingPlatform in the repository.