Documentation ¶
Index ¶
- type Service
- func (s *Service) AddCredits(user *model.User, tokens int64) error
- func (s *Service) AddMembership(user *model.User, productID, subscriptionID string) error
- func (s *Service) AddShares(user *model.User, invoiceID string, quantity int64) error
- func (s *Service) Close()
- func (s *Service) GetConfig() *config.Config
- func (s *Service) GetOauthService() oauth.ServiceInterface
- func (s *Service) GetRoutes() []routes.Route
- func (s *Service) GrantMemberStatus(email string, status bool) error
- func (s *Service) RegisterRoutes(router *mux.Router, prefix string)
- type ServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct keeps variables for reuse
func NewService ¶
NewService returns a new Service instance
func (*Service) AddCredits ¶
AddCredits ...
func (*Service) AddMembership ¶
AddMembership
func (*Service) GetOauthService ¶
func (s *Service) GetOauthService() oauth.ServiceInterface
GetOauthService returns oauth.Service instance
func (*Service) GrantMemberStatus ¶
GrantMemberStatus
Click to show internal directories.
Click to hide internal directories.