Documentation
¶
Index ¶
- Variables
- type ListProspects
- type Prospect
- type Repository
- type Service
- func (s *Service) Create(ctx context.Context, prospect Prospect) (Prospect, error)
- func (s *Service) Delete(ctx context.Context, prospectId string) error
- func (s *Service) Get(ctx context.Context, prospectId string) (Prospect, error)
- func (s *Service) List(ctx context.Context, query *rql.Query) (ListProspects, error)
- func (s *Service) Update(ctx context.Context, prospect Prospect) (Prospect, error)
- type Status
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ListProspects ¶ added in v0.51.0
type Prospect ¶
type Prospect struct {
ID string `rql:"name=id,type=string"`
Name string `rql:"name=name,type=string"`
Email string `rql:"name=email,type=string"`
Phone string `rql:"name=phone,type=string"`
Activity string `rql:"name=activity,type=string"`
Status Status `rql:"name=status,type=string"` // subscription status
ChangedAt time.Time `rql:"name=changed_at,type=datetime"`
Source string `rql:"name=source,type=string"`
Verified bool `rql:"name=verified,type=bool"`
CreatedAt time.Time `rql:"name=created_at,type=datetime"`
UpdatedAt time.Time `rql:"name=updated_at,type=datetime"`
Metadata metadata.Metadata
}
type Repository ¶
type Repository interface {
Create(ctx context.Context, prospect Prospect) (Prospect, error)
Get(ctx context.Context, id string) (Prospect, error)
List(ctx context.Context, query *rql.Query) (ListProspects, error)
Update(ctx context.Context, prospect Prospect) (Prospect, error)
Delete(ctx context.Context, id string) error
}
Click to show internal directories.
Click to hide internal directories.