service

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 New

func New(db *store.Store, source provider.Source, baseURL string) *Service

func (*Service) Connect

func (*Service) ConnectWithKey added in v0.4.0

func (s *Service) ConnectWithKey(ctx context.Context, req ranjit.ConnectRequest, key string) (ranjit.ConnectResponse, error)

func (*Service) Consent

func (s *Service) Consent(ctx context.Context, token string) (ranjit.Connection, error)

func (*Service) Decide

func (s *Service) Decide(ctx context.Context, token, decision string) (ranjit.Connection, error)

func (*Service) Renew added in v0.2.0

func (s *Service) Renew(ctx context.Context, id string) (ranjit.Connection, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL