entity

package
v0.0.0-...-2e0bdef Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscriber

type Subscriber struct {
	ID      vo.SubscriberID    `bson:"_id" json:"id"`
	Email   vo.SubscriberEmail `bson:"email" json:"email"`
	Created time.Time          `bson:"created" json:"created"`
}

func NewSubscriber

func NewSubscriber(req SubscriberCreateRequest) (*Subscriber, error)

type SubscriberCreateRequest

type SubscriberCreateRequest struct {
	ID    string             `json:"-"`
	Now   time.Time          `json:"-"`
	Email vo.SubscriberEmail `json:"email"`
}

func (SubscriberCreateRequest) Validate

func (r SubscriberCreateRequest) Validate() error

Jump to

Keyboard shortcuts

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