pkg

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 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 `json:",inline"`
	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
	EventHistory eventrepo.EventHistory `json:"events"`
	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"`
	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 TokeninfoTreeResponse

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

TokeninfoTreeResponse is type for responses to tokeninfo tree requests

func NewTokeninfoTreeResponse

func NewTokeninfoTreeResponse(t tree.MytokenEntryTree, update *my.MytokenResponse) TokeninfoTreeResponse

NewTokeninfoTreeResponse creates a new TokeninfoTreeResponse

Jump to

Keyboard shortcuts

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