Documentation ¶
Index ¶
- Constants
- type Provider
- type ProviderState
- type Repository
- type Service
- func (s *Service) DeleteByID(ctx context.Context, providerID uuid.UUID) error
- func (s *Service) GetAll(ctx context.Context) ([]Provider, error)
- func (s *Service) GetByID(ctx context.Context, providerID uuid.UUID) (Provider, error)
- func (s *Service) GetByName(ctx context.Context, name string) (Provider, error)
- func (s *Service) Upsert(ctx context.Context, c Provider) (Provider, error)
Constants ¶
View Source
const (
AuthorizationHeader string = "auth.api_key"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type ProviderState ¶
type ProviderState string
const ( ProviderStateActive ProviderState = "active" ProviderStateInactive ProviderState = "inactive" )
func (ProviderState) String ¶
func (s ProviderState) String() string
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(providerRepo Repository) *Service
func (*Service) DeleteByID ¶
Click to show internal directories.
Click to hide internal directories.