commentservice

package
v0.0.0-...-7a5cd37 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentService

type CommentService interface {
	GetCommentsForNews(ctx context.Context, newsId int) ([]byte, error)
	CreateComment(ctx context.Context, comment models.NewComment) (int, error)
}

func New

func New(URL string, logger *slog.Logger) CommentService

type Mock_client

type Mock_client struct {
}

func (*Mock_client) CreateComment

func (c *Mock_client) CreateComment(ctx context.Context, comment models.NewComment) (int, error)

func (*Mock_client) GetCommentsForNews

func (c *Mock_client) GetCommentsForNews(ctx context.Context, newsId int) ([]byte, error)

Jump to

Keyboard shortcuts

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