Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) Connect(ctx context.Context, req ranjit.ConnectRequest) (ranjit.ConnectResponse, error)
- func (s *Service) ConnectWithKey(ctx context.Context, req ranjit.ConnectRequest, key string) (ranjit.ConnectResponse, error)
- func (s *Service) Consent(ctx context.Context, token string) (ranjit.Connection, error)
- func (s *Service) Decide(ctx context.Context, token, decision string) (ranjit.Connection, error)
- func (s *Service) Renew(ctx context.Context, id string) (ranjit.Connection, error)
Constants ¶
View Source
const AuthorizationTTL = 10 * time.Minute
View Source
const ConsentTTL = 90 * 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Store *store.Store
Source provider.Source
BaseURL string
Now func() time.Time
}
func (*Service) Connect ¶
func (s *Service) Connect(ctx context.Context, req ranjit.ConnectRequest) (ranjit.ConnectResponse, error)
func (*Service) ConnectWithKey ¶ added in v0.4.0
func (s *Service) ConnectWithKey(ctx context.Context, req ranjit.ConnectRequest, key string) (ranjit.ConnectResponse, error)
Click to show internal directories.
Click to hide internal directories.