Documentation
¶
Index ¶
- Variables
- func Module() fx.Option
- type Service
- func (s *Service) DeleteByUUID(ctx context.Context, uuid string) error
- func (s *Service) GetByUUID(ctx context.Context, uuid string) (*Subscription, error)
- func (s *Service) Replace(ctx context.Context, draft SubscriptionIn) (*Subscription, error)
- func (s *Service) SelectByEvent(ctx context.Context, event string) ([]Subscription, error)
- func (s *Service) SelectByUUID(ctx context.Context, uuid ...string) ([]Subscription, error)
- type Subscription
- type SubscriptionIn
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("subscription not found")
)
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) DeleteByUUID ¶
func (*Service) Replace ¶
func (s *Service) Replace(ctx context.Context, draft SubscriptionIn) (*Subscription, error)
func (*Service) SelectByEvent ¶
func (*Service) SelectByUUID ¶
type Subscription ¶
Click to show internal directories.
Click to hide internal directories.