meetingplatformservice

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

GetAll retrieves all MeetingPlatforms form the repository as an aggregate with the ConfiguredPlatforms.

func (*MeetingPlatformService) GetByID

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.

Jump to

Keyboard shortcuts

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