service

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleService

type ArticleService struct {
	Logger      *zap.SugaredLogger
	ImagePath   string
	GitHubToken string
}

func NewArticleService

func NewArticleService(
	logger *zap.SugaredLogger,
	imagePath string,
	githubToken string,
) ArticleService

func (ArticleService) ExportArticle

func (as ArticleService) ExportArticle(article *model.Article, id string) error

func (ArticleService) IssueToArticle

func (as ArticleService) IssueToArticle(issue *github.Issue) (*model.Article, error)

type Service

type Service struct {
	ArticleService
}

func NewService

func NewService(
	logger *zap.SugaredLogger,
	imagePath string,
	githubToken string,
) Service

Jump to

Keyboard shortcuts

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