Documentation
¶
Overview ¶
Package repositories represents data storage/source for miounne
Index ¶
- type Registration
- func (c *Registration) CreateToken(maxUsage, expirationDate string) (*models.RegistrationToken, error)
- func (c *Registration) DisableToken(token string) (*models.RegistrationToken, error)
- func (c *Registration) GetList() ([]models.RegistrationToken, error)
- func (c *Registration) GetNotifyNew() bool
- func (c *Registration) GetNotifyUse() bool
- func (c *Registration) GetRoomID() id.RoomID
- func (c *Registration) GetStatus(token string) (*models.RegistrationToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registration ¶
type Registration struct {
// contains filtered or unexported fields
}
Registration matrix-registration integration
func NewRegistration ¶
func NewRegistration(url string, secret string, roomID id.RoomID, notifyNew bool, notifyUse bool) *Registration
NewRegistration object
func (*Registration) CreateToken ¶
func (c *Registration) CreateToken(maxUsage, expirationDate string) (*models.RegistrationToken, error)
CreateToken ...
func (*Registration) DisableToken ¶
func (c *Registration) DisableToken(token string) (*models.RegistrationToken, error)
DisableToken ...
func (*Registration) GetList ¶
func (c *Registration) GetList() ([]models.RegistrationToken, error)
GetList of invite tokens
func (*Registration) GetNotifyNew ¶ added in v2.2.0
func (c *Registration) GetNotifyNew() bool
GetNotifyNew - notify about new tokens created
func (*Registration) GetNotifyUse ¶ added in v2.2.0
func (c *Registration) GetNotifyUse() bool
GetNotifyUse - notify about used tokens
func (*Registration) GetRoomID ¶
func (c *Registration) GetRoomID() id.RoomID
GetRoomID of control room
func (*Registration) GetStatus ¶
func (c *Registration) GetStatus(token string) (*models.RegistrationToken, error)
GetStatus of matrix-registration token
Click to show internal directories.
Click to hide internal directories.