pkg

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenInfoRequest

type TokenInfoRequest struct {
	api.TokenInfoRequest
	Action  model.TokeninfoAction             `json:"action"`
	Mytoken universalmytoken.UniversalMytoken `json:"mytoken"`
}

TokenInfoRequest is a type for holding a request to the tokeninfo endpoint

type TokeninfoHistoryResponse

type TokeninfoHistoryResponse struct {
	// un update check api.TokeninfoHistoryResponse
	eventrepo.EventHistory
	TokenUpdate *my.MytokenResponse `json:"token_update,omitempty"`
}

TokeninfoHistoryResponse is type for responses to tokeninfo history requests

func NewTokeninfoHistoryResponse

func NewTokeninfoHistoryResponse(h eventrepo.EventHistory, update *my.MytokenResponse) TokeninfoHistoryResponse

NewTokeninfoHistoryResponse creates a new TokeninfoHistoryResponse

type TokeninfoIntrospectResponse

type TokeninfoIntrospectResponse struct {
	api.TokeninfoIntrospectResponse `json:",inline"`
	TokenType                       model.ResponseType  `json:"token_type"`
	Token                           mytoken.UsedMytoken `json:"token"`
}

TokeninfoIntrospectResponse is type for responses to tokeninfo introspect requests

type TokeninfoListResponse

type TokeninfoListResponse struct {
	// un update check api.TokeninfoListResponse
	Tokens      []*tree.MytokenEntryTree `json:"mytokens"`
	TokenUpdate *my.MytokenResponse      `json:"token_update,omitempty"`
}

TokeninfoListResponse is type for responses to tokeninfo list requests

func NewTokeninfoListResponse

func NewTokeninfoListResponse(l []*tree.MytokenEntryTree, update *my.MytokenResponse) TokeninfoListResponse

NewTokeninfoListResponse creates a new TokeninfoListResponse

type TokeninfoNotificationsResponse added in v0.10.0

type TokeninfoNotificationsResponse struct {
	// on update check api.TokeninfoNotificationsResponse
	api.TokeninfoNotificationsResponse
	TokenUpdate *my.MytokenResponse `json:"token_update,omitempty"`
}

TokeninfoNotificationsResponse is a type for responses to tokeninfo notification requests

type TokeninfoSubtokensResponse added in v0.4.1

type TokeninfoSubtokensResponse struct {
	// on update check api.TokeninfoTreeResponse
	Tokens      tree.MytokenEntryTree `json:"mytokens"`
	TokenUpdate *my.MytokenResponse   `json:"token_update,omitempty"`
}

TokeninfoSubtokensResponse is type for responses to tokeninfo tree requests

func NewTokeninfoSubtokensResponse added in v0.4.1

func NewTokeninfoSubtokensResponse(t tree.MytokenEntryTree, update *my.MytokenResponse) TokeninfoSubtokensResponse

NewTokeninfoSubtokensResponse creates a new TokeninfoSubtokensResponse

Jump to

Keyboard shortcuts

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