config

package
v0.0.0-...-63fccf3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RelyingPartyName string
	RelyingPartyUUID string
	CertificateLevel string
	HashType         string
	InteractionType  string
	Text             string
	URL              string
	Timeout          int
}

Config is a struct holds the client configuration options

type Option

type Option func(*Config)

Option is a type for functional options

func WithCertificateLevel

func WithCertificateLevel(level string) Option

WithCertificateLevel is option to set the certificate level

func WithHashType

func WithHashType(hashType string) Option

WithHashType is option to set the hash type

func WithInteractionType

func WithInteractionType(interactionType string) Option

WithInteractionType is option to set the interaction type

func WithRelyingPartyName

func WithRelyingPartyName(name string) Option

WithRelayingPartyName is option to set the RelyingPartyName

func WithRelyingPartyUUID

func WithRelyingPartyUUID(id string) Option

WithRelayingPartyUUID is option to set the RelyingPartyUUID

func WithText

func WithText(text string) Option

WithText is option to set the display text

func WithTimeout

func WithTimeout(timeout int) Option

WithTimeout is option to set the request timeout

func WithURL

func WithURL(url string) Option

WithURL is option to set the Smart-ID service URL

Jump to

Keyboard shortcuts

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