double_auth

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveDoubleAuthMethod

func RemoveDoubleAuthMethod(methodToRemove string, ownerId string) error

Types

type AddTrustDeviceResponse

type AddTrustDeviceResponse struct {
	Patient *model.Patient
	Doctor  *model.Doctor
	Code    int
	Err     error
}

func AddTrustDevice

func AddTrustDevice(id_device string, id_user string) AddTrustDeviceResponse

type CreateDeviceConnectInput

type CreateDeviceConnectInput struct {
	DeviceName string  `json:"device_name"`
	Ip         string  `json:"ip"`
	Latitude   float64 `json:"latitude"`
	Longitude  float64 `json:"longitude"`
	Date       int     `json:"date"`
}

type CreateDeviceConnectResponse

type CreateDeviceConnectResponse struct {
	DeviceConnect model.DeviceConnect
	Code          int
	Err           error
}

func CreateDeviceConnect

func CreateDeviceConnect(input CreateDeviceConnectInput, ownerId string) CreateDeviceConnectResponse

type CreateDoubleAuthInput

type CreateDoubleAuthInput struct {
	Methods string `json:"method_2fa"`
}

type CreateDoubleAuthResponse

type CreateDoubleAuthResponse struct {
	DoubleAuth model.DoubleAuth
	Code       int
	Err        error
}

func CreateDoubleAuthAppTier

func CreateDoubleAuthAppTier(input CreateDoubleAuthTierInput, url string, ownerId string) CreateDoubleAuthResponse

func CreateDoubleAuthEmail

func CreateDoubleAuthEmail(input CreateDoubleAuthInput, ownerId string) CreateDoubleAuthResponse

type CreateDoubleAuthTierInput

type CreateDoubleAuthTierInput struct {
	Methods string `json:"method_2fa"`
	Code    string `json:"code"`
}

type CreateDoubleAuthTierResponse

type CreateDoubleAuthTierResponse struct {
	DoubleAuth model.DoubleAuth
	Code       int
	Err        error
}

type CreateDoubleMobileInput

type CreateDoubleMobileInput struct {
	Methods     string `json:"method_2fa"`
	TrustDevice string `json:"trusted_device_id"`
}

type CreateDoubleMobileResponse

type CreateDoubleMobileResponse struct {
	DoubleAuth model.DoubleAuth
	Patient    model.Patient
	Code       int
	Err        error
}

func CreateDoubleAuthMobile

func CreateDoubleAuthMobile(input CreateDoubleMobileInput, ownerId string) CreateDoubleMobileResponse

type DeleteDeviceConnectResponse

type DeleteDeviceConnectResponse struct {
	Deleted bool
	Code    int
	Err     error
}

func DeleteDeviceConnect

func DeleteDeviceConnect(DeviceId string, ownerId string) DeleteDeviceConnectResponse

type GetDeviceConnectByIdResponse

type GetDeviceConnectByIdResponse struct {
	DeviceConnect model.DeviceConnect
	Code          int
	Err           error
}

func GetDeviceConnectById

func GetDeviceConnectById(id string) GetDeviceConnectByIdResponse

func GetTrustDeviceConnectById

func GetTrustDeviceConnectById(id string) GetDeviceConnectByIdResponse

type GetDevicesConnectResponse

type GetDevicesConnectResponse struct {
	DevicesConnect []model.DeviceConnect
	Code           int
	Err            error
}

func GetDeviceConnect

func GetDeviceConnect(ownerId string) GetDevicesConnectResponse

type GetDoubleAuthByIdResponse

type GetDoubleAuthByIdResponse struct {
	DoubleAuth model.DoubleAuth
	Code       int
	Err        error
}

func GetDoubleAuthById

func GetDoubleAuthById(id string) GetDoubleAuthByIdResponse

type GetTrustDeviceConnectByIdResponse

type GetTrustDeviceConnectByIdResponse struct {
	DeviceConnect model.DeviceConnect
	Code          int
	Err           error
}

type GetTrustDevicesConnectResponse

type GetTrustDevicesConnectResponse struct {
	DevicesConnect []model.DeviceConnect
	Code           int
	Err            error
}

func GetTrustDeviceConnect

func GetTrustDeviceConnect(id_user string) GetTrustDevicesConnectResponse

type RemoveTrustDeviceResponse

type RemoveTrustDeviceResponse struct {
	Patient model.Patient
	Doctor  model.Doctor
	Code    int
	Err     error
}

func RemoveTrustDevice

func RemoveTrustDevice(id_device string, id_user string) RemoveTrustDeviceResponse

type UpdateDoubleAuthInput

type UpdateDoubleAuthInput struct {
	Methods         string `json:"method_2fa"`
	Secret          string `json:"secret"`
	URL             string `json:"url"`
	TrustedDeviceId string `json:"trusted_device_id"`
}

type UpdateDoubleAuthResponse

type UpdateDoubleAuthResponse struct {
	DoubleAuth model.DoubleAuth
	Patient    model.Patient
	Code       int
	Err        error
}

func UpdateDoubleAuth

func UpdateDoubleAuth(input UpdateDoubleAuthInput, ownerId string) UpdateDoubleAuthResponse

Jump to

Keyboard shortcuts

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