newsservice

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock_client

type Mock_client struct {
}

func (*Mock_client) GetNews

func (c *Mock_client) GetNews(ctx context.Context, page int, search string) ([]byte, error)

func (*Mock_client) GetNewsDetailed

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

type NewsService

type NewsService interface {
	GetNews(ctx context.Context, page int, search string) ([]byte, error)
	GetNewsDetailed(ctx context.Context, id int) ([]byte, error)
}

func New

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

Jump to

Keyboard shortcuts

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