Documentation ¶
Index ¶
- type Cache
- type Config
- type Persistence
- type PubSub
- type Service
- func (s *Service) Accept(ctx context.Context, invitationID, eventID string) error
- func (s *Service) CheckHealth() error
- func (s *Service) CreateEvent(ctx context.Context, event *model.Event) (*model.Event, error)
- func (s *Service) DeleteEvent(ctx context.Context, id string) error
- func (s *Service) GetEvent(ctx context.Context, id string) (*model.Event, error)
- func (s *Service) GetEvents(ctx context.Context) ([]model.Event, error)
- func (s *Service) Invite(ctx context.Context, invitation *model.Invitation) (*model.Invitation, error)
- func (s *Service) UpdateEvent(ctx context.Context, event *model.Event) (*model.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Persistence ¶
type Persistence interface { UpsertEvent(ctx context.Context, event *model.Event) error GetEvent(ctx context.Context, id string) (*model.Event, error) GetEvents(ctx context.Context, ids []string) ([]model.Event, error) GetProfile(ctx context.Context, id string) (*model.Profile, error) DeleteEvent(ctx context.Context, id string) error UpsertInvitation(ctx context.Context, invitation *model.Invitation) error GetInvitation(ctx context.Context, id string) (*model.Invitation, error) }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CheckHealth ¶
func (*Service) CreateEvent ¶
func (*Service) Invite ¶
func (s *Service) Invite(ctx context.Context, invitation *model.Invitation) (*model.Invitation, error)
Click to show internal directories.
Click to hide internal directories.