Documentation
¶
Index ¶
- Constants
- func CallbackConfirmation() api.Operation
- func CheckConfirmation() api.Operation
- func DeleteTokenFromCache(ctx auth.AuthContext)
- func FailedConfirmation() api.Operation
- func OperationIdCacheKey(operationId string) string
- func PrepareCheckConfirmation() api.Operation
- func PrepareOperation() api.Operation
- type CallbackConfirmationCmd
- type CallbackConfirmationResponse
- type CheckConfirmationResponse
- type OperationCacheToken
- type PrepareCheckConfirmationResponse
- type PrepareOperationCmd
- type PrepareOperationResponse
Constants ¶
View Source
const CallbackResource string = "callback"
View Source
const ConfirmationCacheKey = "confirmation_service"
View Source
const FailedResource string = "failed"
View Source
const OperationResource string = "operation"
View Source
const ServiceName string = "confirmation"
Variables ¶
This section is empty.
Functions ¶
func CallbackConfirmation ¶
func CheckConfirmation ¶
func DeleteTokenFromCache ¶
func DeleteTokenFromCache(ctx auth.AuthContext)
func FailedConfirmation ¶
func OperationIdCacheKey ¶
func PrepareOperation ¶
Types ¶
type CallbackConfirmationCmd ¶
type CallbackConfirmationCmd struct { Id string `json:"operation_id" validate:"required,id" vmessage:"Invalid operation ID"` confirmation_control.ConfirmationResult }
type CallbackConfirmationResponse ¶
type CallbackConfirmationResponse struct { api.ResponseStub Url string `json:"url"` }
type CheckConfirmationResponse ¶
type CheckConfirmationResponse struct { api.ResponseStub RedirectUrl string `json:"redirect_url"` }
type OperationCacheToken ¶
type OperationCacheToken struct { Id string `json:"id"` Recipient string `json:"recipient"` FailedUrl string `json:"failed_url"` Parameters map[string]interface{} `json:"parameters"` }
func GetTokenFromCache ¶
func GetTokenFromCache(ctx auth.AuthContext) (*OperationCacheToken, error)
type PrepareCheckConfirmationResponse ¶
type PrepareCheckConfirmationResponse struct { api.ResponseStub CodeInBody bool `json:"code_in_body"` FailedUrl string `json:"failed_url"` Parameters map[string]interface{} `json:"parameters"` }
type PrepareOperationCmd ¶
type PrepareOperationCmd struct { Id string `json:"id" validate:"required,id" vmessage:"Operation ID must be specified"` Recipient string `json:"recipient" validate:"required" vmessage:"Recipient must be specified"` FailedUrl string `json:"failed_url" validate:"required,url" vmessage:"Invalid format of failed URL"` Parameters map[string]interface{} `json:"parameters"` Ttl int `json:"ttl"` }
type PrepareOperationResponse ¶
type PrepareOperationResponse struct { api.ResponseStub Url string `json:"url"` }
Click to show internal directories.
Click to hide internal directories.