~evanj/cms

ref: 9d7fbcbdf7e7332ea56493092efe5cffbadccdd6 cms/internal/m/invite/invite.go -rw-r--r-- 289 bytes
9d7fbcbdEvan M Jones Fix(go.mod/vendor): Attempting to fix vendoring for deploys. 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package invite

import (
	"errors"

	"git.sr.ht/~evanj/cms/internal/m/org"
)

var (
	ErrExpired = errors.New("this invite has expired")
	ErrUsed    = errors.New("this invite has already been used")
)

type Invite interface {
	ID() string
	Token() string
	Validate() error
	Org() org.Org
}