igloohome

package
v0.0.0-...-681cf83 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Locks                  []map[string]string
	ApprovalEmail          string
	ApprovalLink           string
	AdditionalInstructions string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clientID, clientSecret string, locks []map[string]string) *Client

func (*Client) GenerateHourly

func (c *Client) GenerateHourly(lock, name string, duration time.Duration) (string, time.Time, error)

func (*Client) GenerateOTP

func (c *Client) GenerateOTP(lock, name string) (string, error)

type HourlyRequestBody

type HourlyRequestBody struct {
	Variance   int    `json:"variance"`
	StartDate  string `json:"startDate"`
	EndDate    string `json:"endDate"`
	AccessName string `json:"accessName"`
}

type OTPRequestBody

type OTPRequestBody struct {
	Variance   int    `json:"variance"`
	StartDate  string `json:"startDate"`
	AccessName string `json:"accessName"`
}

type TokenResponse

type TokenResponse struct {
	PIN string `json:"pin"`
	ID  string `json:"pinId"`
}

Jump to

Keyboard shortcuts

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