application

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	List(context.Context) ([]domain.User, error)
	Get(context.Context, string) (domain.User, error)
	Create(context.Context, domain.User) (domain.User, error)
}

Repository is the application port. Storage adapters implement it.

type Service

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

func NewService

func NewService(repository Repository) *Service

func (*Service) Create

func (s *Service) Create(ctx context.Context, name string) (domain.User, error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, id string) (domain.User, error)

func (*Service) List

func (s *Service) List(ctx context.Context) ([]domain.User, error)

Jump to

Keyboard shortcuts

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