repositories

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package repositories represents data storage/source for miounne

Index

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

Directories

Path Synopsis
Package formext represents form extensions
Package formext represents form extensions

Jump to

Keyboard shortcuts

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