tokens_pkg

package
v0.0.0-...-2e3d4c0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TOKENS

* Interface for the TOKENS_IMPL

type TOKENS_IMPL

type TOKENS_IMPL struct {
	// contains filtered or unexported fields
}

* Client structure as interface implementation

func NewTOKENS

func NewTOKENS(config configuration_pkg.CONFIGURATION) *TOKENS_IMPL

* Factory for the TOKENS interaface returning TOKENS_IMPL

func (*TOKENS_IMPL) CreateToken

func (me *TOKENS_IMPL) CreateToken(
	publicKey string,
	body *models_pkg.CreateTokenRequest,
	idempotencyKey *string,
	appId *string) (*models_pkg.GetTokenResponse, error)

*

  • CreateToken
  • @param string publicKey parameter: Required
  • @param *models_pkg.CreateTokenRequest body parameter: Required
  • @param *string idempotencyKey parameter: Optional
  • @param *string appId parameter: Optional
  • @return Returns the *models_pkg.GetTokenResponse response from the API call

func (*TOKENS_IMPL) GetToken

func (me *TOKENS_IMPL) GetToken(
	id string,
	publicKey string,
	appId *string) (*models_pkg.GetTokenResponse, error)

*

  • Gets a token from its id
  • @param string id parameter: Required
  • @param string publicKey parameter: Required
  • @param *string appId parameter: Optional
  • @return Returns the *models_pkg.GetTokenResponse response from the API call

Jump to

Keyboard shortcuts

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