tokens_pkg

package
v0.0.0-...-6ed0ad3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 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

type TOKENS interface {
	CreateToken(string, *models_pkg.TokensRequest, *string, *string) (*models_pkg.TokensResponse, error)

	GetToken(string, string, *string) (*models_pkg.TokensResponse, error)
}

* 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.TokensRequest,
	idempotencyKey *string,
	appId *string) (*models_pkg.TokensResponse, error)

*

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

func (*TOKENS_IMPL) GetToken

func (me *TOKENS_IMPL) GetToken(
	id string,
	publicKey string,
	appId *string) (*models_pkg.TokensResponse, 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.TokensResponse response from the API call

Jump to

Keyboard shortcuts

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