Documentation
¶
Index ¶
- type GrantHandler
- type ListGrantsHandler
- type ListGrantsHandlerParams
- type ListGrantsHandlerRequest
- type ListGrantsHandlerResponse
- type ListGrantsV2Handler
- type ListGrantsV2HandlerParams
- type ListGrantsV2HandlerRequest
- type ListGrantsV2HandlerResponse
- type VoidGrantHandler
- type VoidGrantHandlerParams
- type VoidGrantHandlerRequest
- type VoidGrantHandlerResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrantHandler ¶
type GrantHandler interface {
ListGrants() ListGrantsHandler
VoidGrant() VoidGrantHandler
ListGrantsV2() ListGrantsV2Handler
}
func NewGrantHandler ¶
func NewGrantHandler( namespaceDecoder namespacedriver.NamespaceDecoder, grantConnector credit.GrantConnector, grantRepo grant.Repo, customerService customer.Service, options ...httptransport.HandlerOption, ) GrantHandler
type ListGrantsHandler ¶
type ListGrantsHandler httptransport.HandlerWithArgs[ListGrantsHandlerRequest, ListGrantsHandlerResponse, ListGrantsHandlerParams]
type ListGrantsHandlerParams ¶
type ListGrantsHandlerParams struct {
Params api.ListGrantsParams
}
type ListGrantsHandlerRequest ¶
type ListGrantsHandlerRequest struct {
// contains filtered or unexported fields
}
type ListGrantsHandlerResponse ¶
type ListGrantsHandlerResponse = commonhttp.Union[[]api.EntitlementGrant, pagination.Result[api.EntitlementGrant]]
type ListGrantsV2Handler ¶
type ListGrantsV2Handler httptransport.HandlerWithArgs[ListGrantsV2HandlerRequest, ListGrantsV2HandlerResponse, ListGrantsV2HandlerParams]
type ListGrantsV2HandlerParams ¶
type ListGrantsV2HandlerParams struct {
Params api.ListGrantsV2Params
}
V2 List Grants
type ListGrantsV2HandlerRequest ¶
type ListGrantsV2HandlerRequest struct {
// contains filtered or unexported fields
}
V2 List Grants
type ListGrantsV2HandlerResponse ¶
type ListGrantsV2HandlerResponse = api.GrantV2PaginatedResponse
V2 List Grants
type VoidGrantHandler ¶
type VoidGrantHandler httptransport.HandlerWithArgs[VoidGrantHandlerRequest, VoidGrantHandlerResponse, VoidGrantHandlerParams]
type VoidGrantHandlerParams ¶
type VoidGrantHandlerParams struct {
ID string
Params api.VoidGrantParams
}
type VoidGrantHandlerRequest ¶
type VoidGrantHandlerRequest struct {
ID models.NamespacedID
At *time.Time
}
type VoidGrantHandlerResponse ¶
type VoidGrantHandlerResponse = interface{}
Click to show internal directories.
Click to hide internal directories.