model

package
v0.0.0-...-dcec590 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatorModel

type AuthenticatorModel struct {
	// 128-bit identifier indicating the type (e.g. make and model) of the authenticator, encoded as lowercase hex character with four hyphen characters as specified in FIDO Meatadata service. Example: 2fc0579f-8113-47ea-b116-bb5a8db9202a
	AAGUID string `gorm:"primary_key;size:36"`
	Name   string
}

func (*AuthenticatorModel) Id

func (r *AuthenticatorModel) Id() string

func (*AuthenticatorModel) IdFieldName

func (r *AuthenticatorModel) IdFieldName() string

func (*AuthenticatorModel) SetId

func (r *AuthenticatorModel) SetId(id string)

type Challenge

type Challenge struct {
	Hash    string `gorm:"primary_key;column:id"` // base64url encoded SHA256 hash of the RawData
	RawData []byte
}

func (*Challenge) Id

func (r *Challenge) Id() string

func (*Challenge) IdFieldName

func (r *Challenge) IdFieldName() string

func (*Challenge) MarshalJSON

func (r *Challenge) MarshalJSON() ([]byte, error)

func (*Challenge) SetId

func (r *Challenge) SetId(id string)

func (*Challenge) UnmarshalJSON

func (r *Challenge) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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