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"`
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 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
Click to show internal directories.
Click to hide internal directories.