holdtokens

package
v9.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateHoldTokenRequest

type CreateHoldTokenRequest struct {
	ExpiresInMinutes int `json:"expiresInMinutes"`
}

type HoldToken

type HoldToken struct {
	HoldToken        string     `json:"holdToken"`
	ExpiresAt        *time.Time `json:"expiresAt"`
	ExpiresInSeconds int64      `json:"expiresInSeconds"`
}

type HoldTokens

type HoldTokens struct {
	Client *req.Client
}

func (*HoldTokens) Create

func (holdTokens *HoldTokens) Create() (*HoldToken, error)

func (*HoldTokens) CreateWithExpiration

func (holdTokens *HoldTokens) CreateWithExpiration(expiresInMinutes int) (*HoldToken, error)

func (*HoldTokens) ExpireInMinutes

func (holdTokens *HoldTokens) ExpireInMinutes(token string, expiresInMinutes int) (*HoldToken, error)

func (*HoldTokens) Retrieve

func (holdTokens *HoldTokens) Retrieve(token string) (*HoldToken, error)

type SetExpirationDateOfHoldTokenRequest

type SetExpirationDateOfHoldTokenRequest struct {
	ExpiresInMinutes int `json:"expiresInMinutes"`
}

Jump to

Keyboard shortcuts

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