fake

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Articles

type Articles struct{}

Articles is a fake repository

func (*Articles) All

func (a *Articles) All(ctx context.Context) ([]domain.Article, error)

All Articles

func (*Articles) Get

func (a *Articles) Get(ctx context.Context, id string) (domain.Article, error)

Get returns a fake article with the given ID and never fails

Jump to

Keyboard shortcuts

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