Documentation ¶
Index ¶
- type Client
- type Handler
- func (h *Handler) RetrieveCertificate(companyChainID string, uuid string) (*entityApi.TransactionWrapper, error)
- func (h *Handler) RetrieveSecrets(companyChainID string, certificateUuid string) (*entityApi.TransactionWrappers, error)
- func (h *Handler) SendCertificate(transaction *entityApi.Transaction) (*entityApi.TransactionStatus, error)
- func (h *Handler) SendSecret(transaction *entityApi.Transaction, companyChainID string, ...) (*entityApi.TransactionStatus, error)
- func (h *Handler) SendTransaction(route string, transaction []byte) (*entityApi.TransactionStatus, error)
- type RawResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.1.0
type Client struct {
// contains filtered or unexported fields
}
Client is a fasthttp.Client wrapper to dialog with a JSON API.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler provides helper methods to send and retrieve transactions without directly interacting with the HTTP Client.
func (*Handler) RetrieveCertificate ¶ added in v1.1.0
func (h *Handler) RetrieveCertificate(companyChainID string, uuid string) (*entityApi.TransactionWrapper, error)
RetrieveCertificate fetches the API and returns a transaction wrapper or an error.
func (*Handler) RetrieveSecrets ¶ added in v1.1.0
func (h *Handler) RetrieveSecrets( companyChainID string, certificateUuid string, ) (*entityApi.TransactionWrappers, error)
RetrieveSecrets fetches the API and returns a transaction wrapper list or an error.
func (*Handler) SendCertificate ¶
func (h *Handler) SendCertificate(transaction *entityApi.Transaction) (*entityApi.TransactionStatus, error)
SendCertificate accepts a transaction and sends it to the appropriate certificate API route.
func (*Handler) SendSecret ¶ added in v1.1.0
func (h *Handler) SendSecret( transaction *entityApi.Transaction, companyChainID string, certificateUuid string, ) (*entityApi.TransactionStatus, error)
SendSecret accepts a transaction and sends it to the appropriate secret API route.
func (*Handler) SendTransaction ¶ added in v1.1.1
func (h *Handler) SendTransaction( route string, transaction []byte, ) (*entityApi.TransactionStatus, error)
SendTransaction tries to send a transaction to the API and returns a transaction status or an error.
type RawResponse ¶ added in v1.1.0
Response is a fasthttp.Response wrapper.