invite

package
v0.0.0-...-9305a47 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInviteNotFound = errors.New("invite not found")
)

Functions

This section is empty.

Types

type IInvite

type IInvite interface {
	Generate(ctx context.Context, userID int64) (string, error)
	Revoke(ctx context.Context, userID int64) error
}

type Invite

type Invite struct {
	// contains filtered or unexported fields
}

func New

func New(invite repositoryInvite.Querier) *Invite

func (*Invite) Generate

func (s *Invite) Generate(ctx context.Context, userID int64) (string, error)

func (*Invite) Revoke

func (s *Invite) Revoke(ctx context.Context, userID int64) error

Jump to

Keyboard shortcuts

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