Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Package ¶
type Package struct { Name string `json:"name" bson:"name"` Version PackageVersion `json:"version" bson:"version"` File string `json:"file" bson:"file"` IsOutdated bool `json:"isOutdated" bson:"isOutdated"` }
type PackageVersion ¶
type Repo ¶
type Repo struct { ID primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"` UserID primitive.ObjectID `json:"userID" bson:"userID"` Name string `json:"name" bson:"name"` Owner string `json:"owner" bson:"owner"` Path string `json:"path" bson:"path"` Provider string `json:"provider" bson:"provider"` PackageList []*Package `json:"packageList, omitempty" bson:"packageList,omitempty"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` }
type RepoDTO ¶
type RepoDTO struct { ID *string `json:"id,omitempty"` UserID string `json:"userID"` Name string `json:"name"` Owner string `json:"owner"` Path string `json:"path"` Provider string `json:"provider"` PackageList []*Package `json:"packageList, omitempty"` }
func ToRepoDTOs ¶
type RepoRequest ¶
type RepoRequest struct {
Url string `json:"url"`
}
type Subscriber ¶
type Subscriber struct { ID primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"` RepoID primitive.ObjectID `json:"repoID" bson:"repoID"` Email string `json:"email" bson:"email"` IsConfirmed bool `json:"isConfirmed" bson:"isConfirmed"` Notify *Notify `json:"notify,omitempty" bson:"notify,omitempty"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` }
func ToSubscriber ¶
func ToSubscriber(subscribeDTO *SubscriberDTO) *Subscriber
type SubscriberDTO ¶
type SubscriberDTO struct { ID *string `json:"id,omitempty"` RepoID string `json:"repoID"` Email string `json:"email"` IsConfirmed bool `json:"isConfirmed"` Notify *Notify `json:"notify,omitempty"` }
func ToSubscriberDTO ¶
func ToSubscriberDTO(subscriber *Subscriber) *SubscriberDTO
func ToSubscriberDTOs ¶
func ToSubscriberDTOs(subscribers []*Subscriber) []*SubscriberDTO
type SubscriberRequest ¶
Click to show internal directories.
Click to hide internal directories.