Documentation ¶
Index ¶
- Variables
- type Email
- type Member
- func (m *Member) Authenticate(plainTextPassword string) error
- func (m *Member) CreatedAt() time.Time
- func (m *Member) Email() Email
- func (m *Member) FirstName() string
- func (m *Member) ID() MemberID
- func (m *Member) LastName() string
- func (m *Member) OrgID() OrgID
- func (m *Member) Password() Password
- type MemberID
- type MemberRepository
- type OrgID
- type Organization
- type OrganizationRepository
- type Password
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthenticationFailed = errors.New("error authenticating member") ErrMemberAlreadyExists = errors.New("error member already exists") )
View Source
var (
ErrMemberNotFound = errors.New("member not found")
)
Functions ¶
This section is empty.
Types ¶
type Member ¶
type Member struct {
// contains filtered or unexported fields
}
func UnMarshallMember ¶
func (*Member) Authenticate ¶
type MemberRepository ¶
type Organization ¶
type Organization struct {
// contains filtered or unexported fields
}
func MarshallToOrganization ¶
func NewOrganization ¶
func NewOrganization() *Organization
func (*Organization) CreatedAt ¶
func (o *Organization) CreatedAt() time.Time
func (*Organization) DisabledAt ¶
func (o *Organization) DisabledAt() *time.Time
func (*Organization) ID ¶
func (o *Organization) ID() OrgID
type OrganizationRepository ¶
type OrganizationRepository interface {
Insert(ctx context.Context, org *Organization) error
}
type Password ¶
type Password struct {
// contains filtered or unexported fields
}
func NewPassword ¶
func NewPasswordFromHash ¶
Click to show internal directories.
Click to hide internal directories.