Documentation ¶
Index ¶
- type NameSpaceStore
- func (ms *NameSpaceStore) Delete(ns *domain.NameSpace) error
- func (ms *NameSpaceStore) GetWithBase(base string) (*domain.NameSpace, error)
- func (ms *NameSpaceStore) GetWithPrefix(prefix string) (*domain.NameSpace, error)
- func (ms *NameSpaceStore) Len() int
- func (ms *NameSpaceStore) List() ([]*domain.NameSpace, error)
- func (ms *NameSpaceStore) Set(ns *domain.NameSpace) error
- type OrganizationStore
- func (ms *OrganizationStore) Delete(ctx context.Context, id domain.OrganizationID) error
- func (ms *OrganizationStore) Filter(ctx context.Context, filter ...domain.OrganizationFilter) ([]domain.Organization, error)
- func (ms *OrganizationStore) Get(ctx context.Context, id domain.OrganizationID) (domain.Organization, error)
- func (ms *OrganizationStore) Put(ctx context.Context, org domain.Organization) error
- func (ms *OrganizationStore) Shutdown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameSpaceStore ¶
NameSpaceStore is the default namespace.Store for namespace.Service.
Note: mutations in this store are ephemeral.
func NewNameSpaceStore ¶
func NewNameSpaceStore() *NameSpaceStore
NewNameSpaceStore creates an in-memory namespace.Store.
func (*NameSpaceStore) Delete ¶
func (ms *NameSpaceStore) Delete(ns *domain.NameSpace) error
Delete removes a NameSpace from the store
func (*NameSpaceStore) GetWithBase ¶
func (ms *NameSpaceStore) GetWithBase(base string) (*domain.NameSpace, error)
GetWithBase returns a NameSpace from the store if the base URI is found.
func (*NameSpaceStore) GetWithPrefix ¶
func (ms *NameSpaceStore) GetWithPrefix(prefix string) (*domain.NameSpace, error)
GetWithPrefix returns a NameSpace from the store if the prefix is found.
func (*NameSpaceStore) Len ¶
func (ms *NameSpaceStore) Len() int
Len returns the number of stored namespaces. Alternatives Base or Prefixes don't count towards the total.
type OrganizationStore ¶
type OrganizationStore struct {
// contains filtered or unexported fields
}
func NewOrganizationStore ¶
func NewOrganizationStore() *OrganizationStore
func (*OrganizationStore) Delete ¶
func (ms *OrganizationStore) Delete(ctx context.Context, id domain.OrganizationID) error
func (*OrganizationStore) Filter ¶ added in v0.1.8
func (ms *OrganizationStore) Filter(ctx context.Context, filter ...domain.OrganizationFilter) ([]domain.Organization, error)
func (*OrganizationStore) Get ¶
func (ms *OrganizationStore) Get(ctx context.Context, id domain.OrganizationID) (domain.Organization, error)
func (*OrganizationStore) Put ¶
func (ms *OrganizationStore) Put(ctx context.Context, org domain.Organization) error
Click to show internal directories.
Click to hide internal directories.