Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invitation ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(dbFile string) (r *Repository, err error)
NewRepository Creates a new repository to a specified file
func (*Repository) AddInvitation ¶
func (r *Repository) AddInvitation(i Invitation) error
AddInvitation adds a new Invitation to the repostitory
func (*Repository) Close ¶
func (r *Repository) Close() error
Close will close the repository including the database
func (*Repository) GetInvitation ¶
func (r *Repository) GetInvitation(token uuid.UUID) (i *Invitation, err error)
GetInvitation adds a new Invitation to the repostitory
func (*Repository) RevokeInvitation ¶
func (r *Repository) RevokeInvitation(token uuid.UUID) error
RevokeInvitation adds a new Invitation to the repostitory
Click to show internal directories.
Click to hide internal directories.