Documentation ¶
Index ¶
- type AuthService
- func (s *AuthService) CreateAuth(ctx context.Context, auth *wtf.Auth) error
- func (s *AuthService) DeleteAuth(ctx context.Context, id int) error
- func (s *AuthService) FindAuthByID(ctx context.Context, id int) (*wtf.Auth, error)
- func (s *AuthService) FindAuths(ctx context.Context, filter wtf.AuthFilter) ([]*wtf.Auth, int, error)
- type DialMembershipService
- func (s *DialMembershipService) CreateDialMembership(ctx context.Context, membership *wtf.DialMembership) error
- func (s *DialMembershipService) DeleteDialMembership(ctx context.Context, id int) error
- func (s *DialMembershipService) FindDialMembershipByID(ctx context.Context, id int) (*wtf.DialMembership, error)
- func (s *DialMembershipService) FindDialMemberships(ctx context.Context, filter wtf.DialMembershipFilter) ([]*wtf.DialMembership, int, error)
- func (s *DialMembershipService) UpdateDialMembership(ctx context.Context, id int, upd wtf.DialMembershipUpdate) (*wtf.DialMembership, error)
- type DialService
- func (s *DialService) AverageDialValueReport(ctx context.Context, start, end time.Time, interval time.Duration) (*wtf.DialValueReport, error)
- func (s *DialService) CreateDial(ctx context.Context, dial *wtf.Dial) error
- func (s *DialService) DeleteDial(ctx context.Context, id int) error
- func (s *DialService) FindDialByID(ctx context.Context, id int) (*wtf.Dial, error)
- func (s *DialService) FindDials(ctx context.Context, filter wtf.DialFilter) ([]*wtf.Dial, int, error)
- func (s *DialService) SetDialMembershipValue(ctx context.Context, dialID, value int) error
- func (s *DialService) UpdateDial(ctx context.Context, id int, upd wtf.DialUpdate) (*wtf.Dial, error)
- type EventService
- type Subscription
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, user *wtf.User) error
- func (s *UserService) DeleteUser(ctx context.Context, id int) error
- func (s *UserService) FindUserByID(ctx context.Context, id int) (*wtf.User, error)
- func (s *UserService) FindUsers(ctx context.Context, filter wtf.UserFilter) ([]*wtf.User, int, error)
- func (s *UserService) UpdateUser(ctx context.Context, id int, upd wtf.UserUpdate) (*wtf.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct { FindAuthByIDFn func(ctx context.Context, id int) (*wtf.Auth, error) FindAuthsFn func(ctx context.Context, filter wtf.AuthFilter) ([]*wtf.Auth, int, error) CreateAuthFn func(ctx context.Context, auth *wtf.Auth) error DeleteAuthFn func(ctx context.Context, id int) error }
func (*AuthService) CreateAuth ¶
func (*AuthService) DeleteAuth ¶
func (s *AuthService) DeleteAuth(ctx context.Context, id int) error
func (*AuthService) FindAuthByID ¶
type DialMembershipService ¶
type DialMembershipService struct { FindDialMembershipByIDFn func(ctx context.Context, id int) (*wtf.DialMembership, error) FindDialMembershipsFn func(ctx context.Context, filter wtf.DialMembershipFilter) ([]*wtf.DialMembership, int, error) CreateDialMembershipFn func(ctx context.Context, membership *wtf.DialMembership) error UpdateDialMembershipFn func(ctx context.Context, id int, upd wtf.DialMembershipUpdate) (*wtf.DialMembership, error) DeleteDialMembershipFn func(ctx context.Context, id int) error }
func (*DialMembershipService) CreateDialMembership ¶
func (s *DialMembershipService) CreateDialMembership(ctx context.Context, membership *wtf.DialMembership) error
func (*DialMembershipService) DeleteDialMembership ¶
func (s *DialMembershipService) DeleteDialMembership(ctx context.Context, id int) error
func (*DialMembershipService) FindDialMembershipByID ¶
func (s *DialMembershipService) FindDialMembershipByID(ctx context.Context, id int) (*wtf.DialMembership, error)
func (*DialMembershipService) FindDialMemberships ¶
func (s *DialMembershipService) FindDialMemberships(ctx context.Context, filter wtf.DialMembershipFilter) ([]*wtf.DialMembership, int, error)
func (*DialMembershipService) UpdateDialMembership ¶
func (s *DialMembershipService) UpdateDialMembership(ctx context.Context, id int, upd wtf.DialMembershipUpdate) (*wtf.DialMembership, error)
type DialService ¶
type DialService struct { FindDialByIDFn func(ctx context.Context, id int) (*wtf.Dial, error) FindDialsFn func(ctx context.Context, filter wtf.DialFilter) ([]*wtf.Dial, int, error) CreateDialFn func(ctx context.Context, dial *wtf.Dial) error UpdateDialFn func(ctx context.Context, id int, upd wtf.DialUpdate) (*wtf.Dial, error) DeleteDialFn func(ctx context.Context, id int) error SetDialMembershipValueFn func(ctx context.Context, dialID, value int) error AverageDialValueReportFn func(ctx context.Context, start, end time.Time, interval time.Duration) (*wtf.DialValueReport, error) }
DialService represents a mock of wtf.DialService.
func (*DialService) AverageDialValueReport ¶
func (s *DialService) AverageDialValueReport(ctx context.Context, start, end time.Time, interval time.Duration) (*wtf.DialValueReport, error)
func (*DialService) CreateDial ¶
func (*DialService) DeleteDial ¶
func (s *DialService) DeleteDial(ctx context.Context, id int) error
func (*DialService) FindDialByID ¶
func (*DialService) FindDials ¶
func (s *DialService) FindDials(ctx context.Context, filter wtf.DialFilter) ([]*wtf.Dial, int, error)
func (*DialService) SetDialMembershipValue ¶ added in v0.1.1
func (s *DialService) SetDialMembershipValue(ctx context.Context, dialID, value int) error
func (*DialService) UpdateDial ¶
func (s *DialService) UpdateDial(ctx context.Context, id int, upd wtf.DialUpdate) (*wtf.Dial, error)
type EventService ¶
type EventService struct { PublishEventFn func(userID int, event wtf.Event) SubscribeFn func(ctx context.Context) (wtf.Subscription, error) }
func (*EventService) PublishEvent ¶
func (s *EventService) PublishEvent(userID int, event wtf.Event)
func (*EventService) Subscribe ¶
func (s *EventService) Subscribe(ctx context.Context) (wtf.Subscription, error)
type Subscription ¶
func (*Subscription) C ¶
func (s *Subscription) C() <-chan wtf.Event
func (*Subscription) Close ¶
func (s *Subscription) Close() error
type UserService ¶
type UserService struct { FindUserByIDFn func(ctx context.Context, id int) (*wtf.User, error) FindUsersFn func(ctx context.Context, filter wtf.UserFilter) ([]*wtf.User, int, error) CreateUserFn func(ctx context.Context, user *wtf.User) error UpdateUserFn func(ctx context.Context, id int, upd wtf.UserUpdate) (*wtf.User, error) DeleteUserFn func(ctx context.Context, id int) error }
func (*UserService) CreateUser ¶
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(ctx context.Context, id int) error
func (*UserService) FindUserByID ¶
func (*UserService) FindUsers ¶
func (s *UserService) FindUsers(ctx context.Context, filter wtf.UserFilter) ([]*wtf.User, int, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, id int, upd wtf.UserUpdate) (*wtf.User, error)
Click to show internal directories.
Click to hide internal directories.