email

package
v2.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationService

type NotificationService struct {
	Templates           map[string]*handlebars.Template
	BaseUrl             url.URL
	Logger              log.Logger
	MembroService       membro.MembroService
	NotificationService notification.NotificationService
	GetRealmsEndpoint   endpoint.Endpoint
}

func (*NotificationService) CountMembers

func (svc *NotificationService) CountMembers(ctx context.Context, orgID string, status membro.MemberStatus) (int, error)

func (*NotificationService) DraftMembers

func (svc *NotificationService) DraftMembers(ctx context.Context, orgID string, draftMembers []*membro.Member) error

func (*NotificationService) GetMemberByToken

func (svc *NotificationService) GetMemberByToken(ctx context.Context, orgID string, token string) (*membro.Member, error)

func (*NotificationService) GetMembers

func (svc *NotificationService) GetMembers(ctx context.Context, orgID string, memberIDs []string, members []*membro.Member) error

func (*NotificationService) QueryMembers

func (svc *NotificationService) QueryMembers(ctx context.Context, orgID string, offset int, limit int, status membro.MemberStatus, members *[]*membro.Member) error

func (*NotificationService) UpdateMembers

func (svc *NotificationService) UpdateMembers(ctx context.Context, orgID string, members []*membro.Member) error

func (*NotificationService) UpdateMembersStatus

func (svc *NotificationService) UpdateMembersStatus(ctx context.Context, orgID string, members []*membro.Member, newStatus membro.MemberStatus) error

func (*NotificationService) ValidateToken

func (svc *NotificationService) ValidateToken(ctx context.Context, orgID string, token string) error

type ResolvableOrganization

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

func (*ResolvableOrganization) ResolveContact

func (o *ResolvableOrganization) ResolveContact() interface{}

func (*ResolvableOrganization) ResolveEmail

func (o *ResolvableOrganization) ResolveEmail() *mail.Address

type TemplateContext

type TemplateContext struct {
	BaseUrl      string
	Organization *alianco.Realm
	Member       *membro.Member
}

Jump to

Keyboard shortcuts

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