blaast

package
v0.0.0-...-794e90b Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blaast

type Blaast struct {
	mgm.DefaultModel `bson:",inline"`
	BlaastID         string `json:"blaastId" bson:"blaastId"`
	ReceiverID       string `json:"receiverID" bson:"receiverID"`
	SenderID         string `json:"senderID" bson:"senderID"`
	Text             string `json:"text" bson:"text"`
	Status           Status `json:"status" bson:"status"`
}

func NewBlaast

func NewBlaast(receiverID string, senderID string, text string) *Blaast

func (*Blaast) CollectionName

func (model *Blaast) CollectionName() string

func (*Blaast) ConvertForDomain

func (model *Blaast) ConvertForDomain() *blaast.Blaast

type Repository

type Repository interface {
	CreateBlaast(receiverID string, senderID string, text string) (*blaast.Blaast, error)
	GetByID(blaastId string) (*blaast.Blaast, error)
}

func New

func New(config *config.Mongo) Repository

type Status

type Status string
const (
	Active  Status = "active"
	Deleted Status = "deleted"
)

Jump to

Keyboard shortcuts

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