Documentation ¶
Index ¶
- Variables
- type OAuthInfoRepo
- func (o *OAuthInfoRepo) Create(oauthToken *domain.OAuthInfo) (uint, error)
- func (o *OAuthInfoRepo) Delete(ID uint) error
- func (o *OAuthInfoRepo) GetAll() ([]*domain.OAuthInfo, error)
- func (o *OAuthInfoRepo) GetAllByMeetingPlatformID(ID uint) ([]*domain.OAuthInfo, error)
- func (o *OAuthInfoRepo) GetAllByUserID(userID uint) ([]*domain.OAuthInfo, error)
- func (o *OAuthInfoRepo) GetByID(ID uint) (*domain.OAuthInfo, error)
- func (o *OAuthInfoRepo) GetByUserIDAndMeetingPlatformID(userID uint, meetingPlatformID uint) (*domain.OAuthInfo, error)
- func (o *OAuthInfoRepo) Update(oauthToken *domain.OAuthInfo) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProviderSet provides an OAuthInfoRepo for use in production. ProviderSet = wire.NewSet(Provide, wire.Bind(new(domain.OAuthInfoRepository), new(*OAuthInfoRepo))) )
Functions ¶
This section is empty.
Types ¶
type OAuthInfoRepo ¶
OAuthInfoRepo is a repository that holds information about OAuthInfos backed by a database.
func Provide ¶
func Provide(manager *database.Manager) *OAuthInfoRepo
Provide provides an OAuthInfoRepo configured by the given Manager.
func (*OAuthInfoRepo) Create ¶
func (o *OAuthInfoRepo) Create(oauthToken *domain.OAuthInfo) (uint, error)
Create creates the given OAuthInfo in the database.
func (*OAuthInfoRepo) Delete ¶
func (o *OAuthInfoRepo) Delete(ID uint) error
Delete deletes the OAuthInfo with the given ID.
func (*OAuthInfoRepo) GetAll ¶
func (o *OAuthInfoRepo) GetAll() ([]*domain.OAuthInfo, error)
GetAll gets all of the OAuthInfos in the database.
func (*OAuthInfoRepo) GetAllByMeetingPlatformID ¶
func (o *OAuthInfoRepo) GetAllByMeetingPlatformID(ID uint) ([]*domain.OAuthInfo, error)
GetAllByMeetingPlatformID retrieves all OAuthInfos based on the given MeetingPlatform ID.
func (*OAuthInfoRepo) GetAllByUserID ¶
func (o *OAuthInfoRepo) GetAllByUserID(userID uint) ([]*domain.OAuthInfo, error)
GetAllByUserID retrieves all OAuthInfos based on the given User ID.
func (*OAuthInfoRepo) GetByID ¶
func (o *OAuthInfoRepo) GetByID(ID uint) (*domain.OAuthInfo, error)
GetByID retrieves an OAuthInfo based on the given ID.
func (*OAuthInfoRepo) GetByUserIDAndMeetingPlatformID ¶
func (o *OAuthInfoRepo) GetByUserIDAndMeetingPlatformID(userID uint, meetingPlatformID uint) (*domain.OAuthInfo, error)
GetByUserIDAndMeetingPlatformID retrieves the OAuthInfo by the given User ID and MeetingPlatform ID.
Click to show internal directories.
Click to hide internal directories.