repositories

package
v0.17.20 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: EUPL-1.2 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSessionNotFound = errors.New("session does not exist")

Functions

This section is empty.

Types

type SessionClient

type SessionClient struct {
	// contains filtered or unexported fields
}

func NewSessionClient

func NewSessionClient(baseURL string) *SessionClient

func (*SessionClient) CompleteChallenge

func (s *SessionClient) CompleteChallenge(challengeResponse model.ChallengeResponse) (base64.Base64String, error)

func (*SessionClient) GetHealth

func (s *SessionClient) GetHealth() error

func (*SessionClient) GetHealthCheck

func (s *SessionClient) GetHealthCheck() healthcheck.Result

func (*SessionClient) RequestChallenge added in v0.16.2

func (s *SessionClient) RequestChallenge() (*model.Challenge, error)

type SessionServiceRepository

type SessionServiceRepository interface {
	RequestChallenge() (*model.Challenge, error)
	CompleteChallenge(challengeResponse model.ChallengeResponse) (base64.Base64String, error)
	GetHealth() error
	healthcheck.Checker
}

Jump to

Keyboard shortcuts

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