foo

package
v0.0.0-...-7aeffd2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFooAlreadyExists = fmt.Errorf("foo already exists")
	ErrFooMissingID     = fmt.Errorf("foo missing id")
	ErrFooNotFound      = fmt.Errorf("foo not found")
)

Functions

This section is empty.

Types

type DefaultService

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

DefaultService is the default implementation of the foo service.

func NewDefaultService

func NewDefaultService(repo repo) *DefaultService

NewDefaultService creates a new instance of the default foo service.

func (*DefaultService) Create

func (s *DefaultService) Create(id string) (*Foo, error)

Create creates a new foo with the given id.

func (*DefaultService) Get

func (s *DefaultService) Get(id string) (*Foo, error)

Get gets a foo with the given id.

type Foo

type Foo struct {
	ID string `json:"id"`
}

Foo is represents a foo domain object.

Jump to

Keyboard shortcuts

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