tokens

package
v0.0.0-...-2803c64 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenService

func NewTokenService(cli GraphQLClient) *tokenService

Types

type GraphQLClient

type GraphQLClient interface {
	Run(ctx context.Context, req *gcli.Request, resp interface{}) error
}

type Service

type Service interface {
	GetToken(ctx context.Context, clientId, consumerType string) (string, apperrors.AppError)
}

type TokenResponse

type TokenResponse struct {
	Token tokenResponse `json:"result"`
}

func NewTokenResponse

func NewTokenResponse(token string) TokenResponse

func (TokenResponse) GetTokenValue

func (r TokenResponse) GetTokenValue() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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