home/internal/static/repository/dummy/dummy_static.go

28 lines
681 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package dummy
import (
"context"
"source.toby3d.me/toby3d/home/internal/domain"
)
type dummyStaticRepository struct{}
// NewDummyRepository creates a new dummy static repository which will be used
// as argument to functions that you dont care about.
func NewDummyStaticRepository() dummyStaticRepository {
return dummyStaticRepository{}
}
func (dummyStaticRepository) Create(_ context.Context, _ domain.Static, _ string) (bool, error) {
return false, nil
}
func (dummyStaticRepository) Get(_ context.Context, _ string) (*domain.Static, error) {
return nil, nil
}
func (dummyStaticRepository) Delete(_ context.Context, _ string) (bool, error) {
return false, nil
}