Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSessionServiceNotPresent ... ErrSessionServiceNotPresent = errors.New("Session service not present in the request context.") // ErrClientNotPresent ... ErrClientNotPresent = errors.New("Client not present in the request context.") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct keeps variables for reuse
func NewService ¶
func NewService(cnf *config.Config, oauthService oauth.ServiceInterface) *Service
NewService starts a new Service instance
func (*Service) GetOauthService ¶
func (s *Service) GetOauthService() oauth.ServiceInterface
GetOauthService returns oauth.Service instance
type ServiceInterface ¶
type ServiceInterface interface { // Exported methods GetConfig() *config.Config GetOauthService() oauth.ServiceInterface GetRoutes() []routes.Route RegisterRoutes(router *mux.Router, prefix string) // contains filtered or unexported methods }
ServiceInterface defines exported methods
Click to show internal directories.
Click to hide internal directories.