github.com/k0marov/go-socnet@v0.0.0-20220715154813-90d07867c782/features/comments/domain/store/store.go (about)

     1  package store
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/k0marov/go-socnet/features/comments/domain/entities"
     7  	"github.com/k0marov/go-socnet/features/comments/domain/values"
     8  	post_values "github.com/k0marov/go-socnet/features/posts/domain/values"
     9  )
    10  
    11  type (
    12  	CommentsGetter func(post post_values.PostId) ([]entities.Comment, error)
    13  	Creator        func(newComment values.NewCommentValue, createdAt time.Time) (values.CommentId, error)
    14  )