Documentation ¶
Index ¶
- type Service
- func (s *Service) Delete(ctx context.Context, id domain.OrganizationID) error
- func (s *Service) Get(ctx context.Context, id domain.OrganizationID) (domain.Organization, error)
- func (s *Service) List(ctx context.Context) ([]domain.Organization, error)
- func (s *Service) Put(ctx context.Context, org domain.Organization) error
- func (s *Service) Shutdown(ctx context.Context) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages all interactions with domain.Organization Store
func NewService ¶
NewService creates an organization.Service. The organization.Store implementation is the storage backend for the service.
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, id domain.OrganizationID) (domain.Organization, error)
Get returns an domain.Organization and returns ErrOrgNotFound when the Organization is not found.
type Store ¶
type Store interface { Delete(ctx context.Context, id domain.OrganizationID) error Get(ctx context.Context, id domain.OrganizationID) (domain.Organization, error) List(ctx context.Context) ([]domain.Organization, error) Put(ctx context.Context, org domain.Organization) error Shutdown(ctx context.Context) error }
Store is the storage interface for the organization.Service.
Click to show internal directories.
Click to hide internal directories.