From 1075d45cb78919f016734f7403f5c07225d2e20f Mon Sep 17 00:00:00 2001 From: SoXX Date: Fri, 31 May 2024 15:05:47 +0200 Subject: [PATCH] docs(post): added function documentation Signed-off-by: SoXX --- pkg/graph/post.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/graph/post.go b/pkg/graph/post.go index f08d75b..c228ee3 100644 --- a/pkg/graph/post.go +++ b/pkg/graph/post.go @@ -7,7 +7,11 @@ import ( ) type Post interface { + + // CreatePost will always create a new node, it does not check if the node with the corresponding post_id and rating exists. CreatePost(ctx context.Context, anthrovePost *models.AnthrovePost) error + + // DeletePost will always delete a node, it only needs the anthrovePost.PostID filled out. DeletePost(ctx context.Context, anthrovePost *models.AnthrovePost) error // CheckPostNodeExistsBySourceID checks if a post node exists in the OtterSpace graph by its source ID.