infrastructure

package
v0.0.0-...-ccb81ee Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogService

type BlogService struct {
	// contains filtered or unexported fields
}

BlogService is an implementation for a e external service

func (*BlogService) All

func (b *BlogService) All(ctx context.Context) ([]domain.Article, error)

All the articles

func (*BlogService) Get

func (b *BlogService) Get(ctx context.Context, id string) (domain.Article, error)

Get single article

func (*BlogService) Inject

func (b *BlogService) Inject(
	logger flamingo.Logger,
	client *http.Client,
	cfg *struct {
		BaseURL string `inject:"config:articles.api.baseURL"`
	},
) *BlogService

Inject dependencies

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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