Documentation ¶
Index ¶
- Variables
- func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter(routers ...Router) *mux.Router
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error)
- type AgentCommandConnectionSendPingData
- type AgentCommandCredentialDefinitionData
- type AgentCommandIssueCredentialSendProposalData
- type AgentCommandProofSendProposalData
- type AgentCommandProofSendRequestData
- type AgentCommandProofSendRequestDataPresentationRequest
- type AgentCommandSchemaData
- type ConnectionApiController
- func (c *ConnectionApiController) ConnectionAcceptInvitation(w http.ResponseWriter, r *http.Request)
- func (c *ConnectionApiController) ConnectionAcceptRequest(w http.ResponseWriter, r *http.Request)
- func (c *ConnectionApiController) ConnectionCreateInvitation(w http.ResponseWriter, r *http.Request)
- func (c *ConnectionApiController) ConnectionGetAll(w http.ResponseWriter, r *http.Request)
- func (c *ConnectionApiController) ConnectionGetById(w http.ResponseWriter, r *http.Request)
- func (c *ConnectionApiController) ConnectionReceiveInvitation(w http.ResponseWriter, r *http.Request)
- func (c *ConnectionApiController) ConnectionSendPing(w http.ResponseWriter, r *http.Request)
- func (c *ConnectionApiController) Routes() Routes
- type ConnectionApiRouter
- type ConnectionApiService
- func (s *ConnectionApiService) ConnectionAcceptInvitation(ctx context.Context, inlineObject1 InlineObject1) (ImplResponse, error)
- func (s *ConnectionApiService) ConnectionAcceptRequest(ctx context.Context, inlineObject2 InlineObject2) (ImplResponse, error)
- func (s *ConnectionApiService) ConnectionCreateInvitation(ctx context.Context) (ImplResponse, error)
- func (s *ConnectionApiService) ConnectionGetAll(ctx context.Context) (ImplResponse, error)
- func (s *ConnectionApiService) ConnectionGetById(ctx context.Context, connectionId string) (ImplResponse, error)
- func (s *ConnectionApiService) ConnectionReceiveInvitation(ctx context.Context, inlineObject InlineObject) (ImplResponse, error)
- func (s *ConnectionApiService) ConnectionSendPing(ctx context.Context, inlineObject3 InlineObject3) (ImplResponse, error)
- type ConnectionApiServicer
- type ConnectionResponse
- type ConnectionState
- type CredentialApiController
- type CredentialApiRouter
- type CredentialApiService
- type CredentialApiServicer
- type CredentialDefinitionApiController
- type CredentialDefinitionApiRouter
- type CredentialDefinitionApiService
- type CredentialDefinitionApiServicer
- type CredentialPreview
- type CredentialPreviewAttributes
- type DIDApiController
- type DIDApiRouter
- type DIDApiService
- type DIDApiServicer
- type ImplResponse
- type InlineObject
- type InlineObject1
- type InlineObject10
- type InlineObject2
- type InlineObject3
- type InlineObject4
- type InlineObject5
- type InlineObject6
- type InlineObject7
- type InlineObject8
- type InlineObject9
- type InlineResponse200
- type InlineResponse2001
- type InlineResponse2002
- type InlineResponse2003
- type InlineResponse2004
- type IssueCredentialApiController
- func (c *IssueCredentialApiController) IssueCredentialGetByThreadId(w http.ResponseWriter, r *http.Request)
- func (c *IssueCredentialApiController) IssueCredentialIssue(w http.ResponseWriter, r *http.Request)
- func (c *IssueCredentialApiController) IssueCredentialSendOffer(w http.ResponseWriter, r *http.Request)
- func (c *IssueCredentialApiController) IssueCredentialSendProposal(w http.ResponseWriter, r *http.Request)
- func (c *IssueCredentialApiController) IssueCredentialSendRequest(w http.ResponseWriter, r *http.Request)
- func (c *IssueCredentialApiController) IssueCredentialStore(w http.ResponseWriter, r *http.Request)
- func (c *IssueCredentialApiController) Routes() Routes
- type IssueCredentialApiRouter
- type IssueCredentialApiService
- func (s *IssueCredentialApiService) IssueCredentialGetByThreadId(ctx context.Context, credentialExchangeThreadId string) (ImplResponse, error)
- func (s *IssueCredentialApiService) IssueCredentialIssue(ctx context.Context, req IssueCredentialIssueRequest) (ImplResponse, error)
- func (s *IssueCredentialApiService) IssueCredentialSendOffer(ctx context.Context, req IssueCredentialOfferRequest) (r ImplResponse, err error)
- func (s *IssueCredentialApiService) IssueCredentialSendProposal(ctx context.Context, inlineObject6 InlineObject6) (ImplResponse, error)
- func (s *IssueCredentialApiService) IssueCredentialSendRequest(ctx context.Context, req SendIssueCredentialRequest) (ImplResponse, error)
- func (s *IssueCredentialApiService) IssueCredentialStore(ctx context.Context, req IssueCredentialStoreRequest) (ImplResponse, error)
- type IssueCredentialApiServicer
- type IssueCredentialIssueRequest
- type IssueCredentialOfferRequest
- type IssueCredentialOperationResponse
- type IssueCredentialState
- type IssueCredentialStoreRequest
- type IssueCredentialV2ApiController
- type IssueCredentialV2ApiRouter
- type IssueCredentialV2ApiService
- type IssueCredentialV2ApiServicer
- type PresentProofApiController
- func (c *PresentProofApiController) PresentProofGetByThreadId(w http.ResponseWriter, r *http.Request)
- func (c *PresentProofApiController) PresentProofSendPresentation(w http.ResponseWriter, r *http.Request)
- func (c *PresentProofApiController) PresentProofSendProposal(w http.ResponseWriter, r *http.Request)
- func (c *PresentProofApiController) PresentProofSendRequest(w http.ResponseWriter, r *http.Request)
- func (c *PresentProofApiController) PresentProofVerifyPresentation(w http.ResponseWriter, r *http.Request)
- func (c *PresentProofApiController) Routes() Routes
- type PresentProofApiRouter
- type PresentProofApiService
- func (s *PresentProofApiService) PresentProofGetByThreadId(ctx context.Context, presentationExchangeThreadId string) (ImplResponse, error)
- func (s *PresentProofApiService) PresentProofSendPresentation(ctx context.Context, inlineObject9 InlineObject9) (ImplResponse, error)
- func (s *PresentProofApiService) PresentProofSendProposal(ctx context.Context, inlineObject7 InlineObject7) (ImplResponse, error)
- func (s *PresentProofApiService) PresentProofSendRequest(ctx context.Context, inlineObject8 InlineObject8) (ImplResponse, error)
- func (s *PresentProofApiService) PresentProofVerifyPresentation(ctx context.Context, inlineObject10 InlineObject10) (ImplResponse, error)
- type PresentProofApiServicer
- type PresentProofOperationResponse
- type PresentProofState
- type PresentationPreview
- type PresentationPreviewAttributes
- type PresentationPreviewPredicates
- type PresentationRequestAttribute
- type Route
- type Router
- func NewConnectionApiController(s ConnectionApiServicer) Router
- func NewCredentialApiController(s CredentialApiServicer) Router
- func NewCredentialDefinitionApiController(s CredentialDefinitionApiServicer) Router
- func NewDIDApiController(s DIDApiServicer) Router
- func NewIssueCredentialApiController(s IssueCredentialApiServicer) Router
- func NewIssueCredentialV2ApiController(s IssueCredentialV2ApiServicer) Router
- func NewPresentProofApiController(s PresentProofApiServicer) Router
- func NewSchemaApiController(s SchemaApiServicer) Router
- func NewStatusApiController(s StatusApiServicer) Router
- type Routes
- type SchemaApiController
- type SchemaApiRouter
- type SchemaApiService
- type SchemaApiServicer
- type SendIssueCredentialRequest
- type StatusApiController
- type StatusApiRouter
- type StatusApiService
- type StatusApiServicer
- type UNKNOWN_BASE_TYPE
Constants ¶
This section is empty.
Variables ¶
var (
Version = "dev"
)
Functions ¶
func EncodeJSONResponse ¶
func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code
func ReadFormFileToTempFile ¶
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file
Types ¶
type AgentCommandConnectionSendPingData ¶
type AgentCommandConnectionSendPingData struct {
Comment string `json:"comment"`
}
type AgentCommandIssueCredentialSendProposalData ¶
type AgentCommandIssueCredentialSendProposalData struct { Comment string `json:"comment,omitempty"` CredentialProposal CredentialPreview `json:"credential_proposal,omitempty"` SchemaIssuerDid string `json:"schema_issuer_did,omitempty"` SchemaId string `json:"schema_id,omitempty"` SchemaName string `json:"schema_name,omitempty"` SchemaVersion string `json:"schema_version,omitempty"` CredDefId string `json:"cred_def_id,omitempty"` IssuerDid string `json:"issuer_did,omitempty"` ConnectionId string `json:"connection_id"` }
type AgentCommandProofSendProposalData ¶
type AgentCommandProofSendProposalData struct { ConnectionId string `json:"connection_id"` PresentationProposal PresentationPreview `json:"presentation_proposal"` }
type AgentCommandProofSendRequestData ¶
type AgentCommandProofSendRequestData struct { ConnectionId string `json:"connection_id"` PresentationRequest AgentCommandProofSendRequestDataPresentationRequest `json:"presentation_request"` }
type AgentCommandProofSendRequestDataPresentationRequest ¶ added in v0.1.6
type AgentCommandProofSendRequestDataPresentationRequest struct { Comment string `json:"comment,omitempty"` ProofRequest struct { Data struct { Name string `json:"name,omitempty"` RequestedAttributes map[string]PresentationRequestAttribute `json:"requested_attributes,omitempty"` RequestedPredicates map[string]interface{} `json:"requested_predicates,omitempty"` Version string `json:"version,omitempty"` } `json:"data,omitempty"` } `json:"proof_request,omitempty"` ConnectionId string `json:"connection_id"` }
type AgentCommandSchemaData ¶
type ConnectionApiController ¶
type ConnectionApiController struct {
// contains filtered or unexported fields
}
A ConnectionApiController binds http requests to an api service and writes the service results to the http response
func (*ConnectionApiController) ConnectionAcceptInvitation ¶
func (c *ConnectionApiController) ConnectionAcceptInvitation(w http.ResponseWriter, r *http.Request)
ConnectionAcceptInvitation - Accept an invitation
func (*ConnectionApiController) ConnectionAcceptRequest ¶
func (c *ConnectionApiController) ConnectionAcceptRequest(w http.ResponseWriter, r *http.Request)
ConnectionAcceptRequest - Accept a connection request
func (*ConnectionApiController) ConnectionCreateInvitation ¶
func (c *ConnectionApiController) ConnectionCreateInvitation(w http.ResponseWriter, r *http.Request)
ConnectionCreateInvitation - Create a new connection invitation
func (*ConnectionApiController) ConnectionGetAll ¶
func (c *ConnectionApiController) ConnectionGetAll(w http.ResponseWriter, r *http.Request)
ConnectionGetAll - Get all connections
func (*ConnectionApiController) ConnectionGetById ¶
func (c *ConnectionApiController) ConnectionGetById(w http.ResponseWriter, r *http.Request)
ConnectionGetById - Get connection by id
func (*ConnectionApiController) ConnectionReceiveInvitation ¶
func (c *ConnectionApiController) ConnectionReceiveInvitation(w http.ResponseWriter, r *http.Request)
ConnectionReceiveInvitation - Receive an invitation
func (*ConnectionApiController) ConnectionSendPing ¶
func (c *ConnectionApiController) ConnectionSendPing(w http.ResponseWriter, r *http.Request)
ConnectionSendPing - Send trust ping
func (*ConnectionApiController) Routes ¶
func (c *ConnectionApiController) Routes() Routes
Routes returns all of the api route for the ConnectionApiController
type ConnectionApiRouter ¶
type ConnectionApiRouter interface { ConnectionAcceptInvitation(http.ResponseWriter, *http.Request) ConnectionAcceptRequest(http.ResponseWriter, *http.Request) ConnectionCreateInvitation(http.ResponseWriter, *http.Request) ConnectionGetAll(http.ResponseWriter, *http.Request) ConnectionGetById(http.ResponseWriter, *http.Request) ConnectionReceiveInvitation(http.ResponseWriter, *http.Request) ConnectionSendPing(http.ResponseWriter, *http.Request) }
ConnectionApiRouter defines the required methods for binding the api requests to a responses for the ConnectionApi The ConnectionApiRouter implementation should parse necessary information from the http request, pass the data to a ConnectionApiServicer to perform the required actions, then write the service results to the http response.
type ConnectionApiService ¶
type ConnectionApiService struct {
// contains filtered or unexported fields
}
ConnectionApiService is a service that implents the logic for the ConnectionApiServicer This service should implement the business logic for every endpoint for the ConnectionApi API. Include any external packages or services that will be required by this service.
func (*ConnectionApiService) ConnectionAcceptInvitation ¶
func (s *ConnectionApiService) ConnectionAcceptInvitation(ctx context.Context, inlineObject1 InlineObject1) (ImplResponse, error)
ConnectionAcceptInvitation - Accept an invitation
func (*ConnectionApiService) ConnectionAcceptRequest ¶
func (s *ConnectionApiService) ConnectionAcceptRequest(ctx context.Context, inlineObject2 InlineObject2) (ImplResponse, error)
ConnectionAcceptRequest - Accept a connection request
func (*ConnectionApiService) ConnectionCreateInvitation ¶
func (s *ConnectionApiService) ConnectionCreateInvitation(ctx context.Context) (ImplResponse, error)
ConnectionCreateInvitation - Create a new connection invitation
func (*ConnectionApiService) ConnectionGetAll ¶
func (s *ConnectionApiService) ConnectionGetAll(ctx context.Context) (ImplResponse, error)
ConnectionGetAll - Get all connections
func (*ConnectionApiService) ConnectionGetById ¶
func (s *ConnectionApiService) ConnectionGetById(ctx context.Context, connectionId string) (ImplResponse, error)
ConnectionGetById - Get connection by id
func (*ConnectionApiService) ConnectionReceiveInvitation ¶
func (s *ConnectionApiService) ConnectionReceiveInvitation(ctx context.Context, inlineObject InlineObject) (ImplResponse, error)
ConnectionReceiveInvitation - Receive an invitation
func (*ConnectionApiService) ConnectionSendPing ¶
func (s *ConnectionApiService) ConnectionSendPing(ctx context.Context, inlineObject3 InlineObject3) (ImplResponse, error)
ConnectionSendPing - Send trust ping
type ConnectionApiServicer ¶
type ConnectionApiServicer interface { ConnectionAcceptInvitation(context.Context, InlineObject1) (ImplResponse, error) ConnectionAcceptRequest(context.Context, InlineObject2) (ImplResponse, error) ConnectionCreateInvitation(context.Context) (ImplResponse, error) ConnectionGetAll(context.Context) (ImplResponse, error) ConnectionGetById(context.Context, string) (ImplResponse, error) ConnectionReceiveInvitation(context.Context, InlineObject) (ImplResponse, error) ConnectionSendPing(context.Context, InlineObject3) (ImplResponse, error) }
ConnectionApiServicer defines the api actions for the ConnectionApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewConnectionApiService ¶
func NewConnectionApiService(a *agent.Agent) ConnectionApiServicer
NewConnectionApiService creates a default api service
type ConnectionResponse ¶
type ConnectionResponse struct { ConnectionId string `json:"connection_id"` State ConnectionState `json:"state"` Connection map[string]interface{} `json:"connection,omitempty"` }
type ConnectionState ¶
type ConnectionState string
ConnectionState : All possible connection state values
const ( INVITATION ConnectionState = "invited" REQUEST ConnectionState = "requested" RESPONSE ConnectionState = "responded" ACTIVE ConnectionState = "complete" )
List of ConnectionState
type CredentialApiController ¶
type CredentialApiController struct {
// contains filtered or unexported fields
}
A CredentialApiController binds http requests to an api service and writes the service results to the http response
func (*CredentialApiController) CredentialGetById ¶
func (c *CredentialApiController) CredentialGetById(w http.ResponseWriter, r *http.Request)
CredentialGetById - Get credential by id
func (*CredentialApiController) Routes ¶
func (c *CredentialApiController) Routes() Routes
Routes returns all of the api route for the CredentialApiController
type CredentialApiRouter ¶
type CredentialApiRouter interface {
CredentialGetById(http.ResponseWriter, *http.Request)
}
CredentialApiRouter defines the required methods for binding the api requests to a responses for the CredentialApi The CredentialApiRouter implementation should parse necessary information from the http request, pass the data to a CredentialApiServicer to perform the required actions, then write the service results to the http response.
type CredentialApiService ¶
type CredentialApiService struct {
// contains filtered or unexported fields
}
CredentialApiService is a service that implents the logic for the CredentialApiServicer This service should implement the business logic for every endpoint for the CredentialApi API. Include any external packages or services that will be required by this service.
func (*CredentialApiService) CredentialGetById ¶
func (s *CredentialApiService) CredentialGetById(ctx context.Context, credentialId string) (ImplResponse, error)
CredentialGetById - Get credential by id
type CredentialApiServicer ¶
type CredentialApiServicer interface {
CredentialGetById(context.Context, string) (ImplResponse, error)
}
CredentialApiServicer defines the api actions for the CredentialApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewCredentialApiService ¶
func NewCredentialApiService(a *agent.Agent) CredentialApiServicer
NewCredentialApiService creates a default api service
type CredentialDefinitionApiController ¶
type CredentialDefinitionApiController struct {
// contains filtered or unexported fields
}
A CredentialDefinitionApiController binds http requests to an api service and writes the service results to the http response
func (*CredentialDefinitionApiController) CredentialDefinitionCreate ¶
func (c *CredentialDefinitionApiController) CredentialDefinitionCreate(w http.ResponseWriter, r *http.Request)
CredentialDefinitionCreate - Create a new credential definition
func (*CredentialDefinitionApiController) CredentialDefinitionGetById ¶
func (c *CredentialDefinitionApiController) CredentialDefinitionGetById(w http.ResponseWriter, r *http.Request)
CredentialDefinitionGetById - Get credential definition by id
func (*CredentialDefinitionApiController) Routes ¶
func (c *CredentialDefinitionApiController) Routes() Routes
Routes returns all of the api route for the CredentialDefinitionApiController
type CredentialDefinitionApiRouter ¶
type CredentialDefinitionApiRouter interface { CredentialDefinitionCreate(http.ResponseWriter, *http.Request) CredentialDefinitionGetById(http.ResponseWriter, *http.Request) }
CredentialDefinitionApiRouter defines the required methods for binding the api requests to a responses for the CredentialDefinitionApi The CredentialDefinitionApiRouter implementation should parse necessary information from the http request, pass the data to a CredentialDefinitionApiServicer to perform the required actions, then write the service results to the http response.
type CredentialDefinitionApiService ¶
type CredentialDefinitionApiService struct {
// contains filtered or unexported fields
}
CredentialDefinitionApiService is a service that implents the logic for the CredentialDefinitionApiServicer This service should implement the business logic for every endpoint for the CredentialDefinitionApi API. Include any external packages or services that will be required by this service.
func (*CredentialDefinitionApiService) CredentialDefinitionCreate ¶
func (s *CredentialDefinitionApiService) CredentialDefinitionCreate(ctx context.Context, inlineObject5 InlineObject5) (ImplResponse, error)
CredentialDefinitionCreate - Create a new credential definition
func (*CredentialDefinitionApiService) CredentialDefinitionGetById ¶
func (s *CredentialDefinitionApiService) CredentialDefinitionGetById(ctx context.Context, credentialDefinitionId string) (ImplResponse, error)
CredentialDefinitionGetById - Get credential definition by id
type CredentialDefinitionApiServicer ¶
type CredentialDefinitionApiServicer interface { CredentialDefinitionCreate(context.Context, InlineObject5) (ImplResponse, error) CredentialDefinitionGetById(context.Context, string) (ImplResponse, error) }
CredentialDefinitionApiServicer defines the api actions for the CredentialDefinitionApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewCredentialDefinitionApiService ¶
func NewCredentialDefinitionApiService(a *agent.Agent) CredentialDefinitionApiServicer
NewCredentialDefinitionApiService creates a default api service
type CredentialPreview ¶
type CredentialPreview struct { Type string `json:"@type"` Attributes []CredentialPreviewAttributes `json:"attributes"` }
type DIDApiController ¶
type DIDApiController struct {
// contains filtered or unexported fields
}
A DIDApiController binds http requests to an api service and writes the service results to the http response
func (*DIDApiController) DIDGetPublic ¶
func (c *DIDApiController) DIDGetPublic(w http.ResponseWriter, r *http.Request)
DIDGetPublic - Get public DID
func (*DIDApiController) Routes ¶
func (c *DIDApiController) Routes() Routes
Routes returns all of the api route for the DIDApiController
type DIDApiRouter ¶
type DIDApiRouter interface {
DIDGetPublic(http.ResponseWriter, *http.Request)
}
DIDApiRouter defines the required methods for binding the api requests to a responses for the DIDApi The DIDApiRouter implementation should parse necessary information from the http request, pass the data to a DIDApiServicer to perform the required actions, then write the service results to the http response.
type DIDApiService ¶
type DIDApiService struct {
// contains filtered or unexported fields
}
DIDApiService is a service that implents the logic for the DIDApiServicer This service should implement the business logic for every endpoint for the DIDApi API. Include any external packages or services that will be required by this service.
func (*DIDApiService) DIDGetPublic ¶
func (s *DIDApiService) DIDGetPublic(ctx context.Context) (ImplResponse, error)
DIDGetPublic - Get public DID
type DIDApiServicer ¶
type DIDApiServicer interface {
DIDGetPublic(context.Context) (ImplResponse, error)
}
DIDApiServicer defines the api actions for the DIDApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewDIDApiService ¶
func NewDIDApiService(a *agent.Agent) DIDApiServicer
NewDIDApiService creates a default api service
type ImplResponse ¶
type ImplResponse struct { Code int Body interface{} }
Implementation response defines an error code with the associated body
func Response ¶
func Response(code int, body interface{}) ImplResponse
Response return a ImplResponse struct filled
type InlineObject ¶
type InlineObject struct {
Data map[string]interface{} `json:"data"`
}
type InlineObject1 ¶
type InlineObject1 struct {
Id string `json:"id"`
}
type InlineObject10 ¶
type InlineObject10 struct {
Id string `json:"id"`
}
type InlineObject2 ¶
type InlineObject2 struct {
Id string `json:"id"`
}
type InlineObject3 ¶
type InlineObject3 struct { Id string `json:"id"` Data AgentCommandConnectionSendPingData `json:"data"` }
type InlineObject4 ¶
type InlineObject4 struct {
Data AgentCommandSchemaData `json:"data"`
}
type InlineObject5 ¶
type InlineObject5 struct {
Data AgentCommandCredentialDefinitionData `json:"data"`
}
type InlineObject6 ¶
type InlineObject6 struct {
Data AgentCommandIssueCredentialSendProposalData `json:"data"`
}
type InlineObject7 ¶
type InlineObject7 struct {
Data AgentCommandProofSendProposalData `json:"data"`
}
type InlineObject8 ¶
type InlineObject8 struct {
Data AgentCommandProofSendRequestData `json:"data"`
}
type InlineObject9 ¶
type InlineResponse200 ¶
type InlineResponse200 struct { ConnectionId string `json:"connection_id,omitempty"` State ConnectionState `json:"state,omitempty"` }
type InlineResponse2001 ¶
type InlineResponse2001 struct { ConnectionId string `json:"connection_id,omitempty"` State ConnectionState `json:"state,omitempty"` }
type InlineResponse2002 ¶
type InlineResponse2002 struct { ConnectionId string `json:"connection_id,omitempty"` State ConnectionState `json:"state,omitempty"` }
type InlineResponse2003 ¶
type InlineResponse2004 ¶
type IssueCredentialApiController ¶
type IssueCredentialApiController struct {
// contains filtered or unexported fields
}
A IssueCredentialApiController binds http requests to an api service and writes the service results to the http response
func (*IssueCredentialApiController) IssueCredentialGetByThreadId ¶
func (c *IssueCredentialApiController) IssueCredentialGetByThreadId(w http.ResponseWriter, r *http.Request)
IssueCredentialGetByThreadId - Get credential exchange record by thread id
func (*IssueCredentialApiController) IssueCredentialIssue ¶
func (c *IssueCredentialApiController) IssueCredentialIssue(w http.ResponseWriter, r *http.Request)
IssueCredentialIssue - Issue Credential
func (*IssueCredentialApiController) IssueCredentialSendOffer ¶
func (c *IssueCredentialApiController) IssueCredentialSendOffer(w http.ResponseWriter, r *http.Request)
IssueCredentialSendOffer - Send credential offer
func (*IssueCredentialApiController) IssueCredentialSendProposal ¶
func (c *IssueCredentialApiController) IssueCredentialSendProposal(w http.ResponseWriter, r *http.Request)
IssueCredentialSendProposal - Send credential proposal
func (*IssueCredentialApiController) IssueCredentialSendRequest ¶
func (c *IssueCredentialApiController) IssueCredentialSendRequest(w http.ResponseWriter, r *http.Request)
IssueCredentialSendRequest - Send credential request
func (*IssueCredentialApiController) IssueCredentialStore ¶
func (c *IssueCredentialApiController) IssueCredentialStore(w http.ResponseWriter, r *http.Request)
IssueCredentialStore - Store Credential
func (*IssueCredentialApiController) Routes ¶
func (c *IssueCredentialApiController) Routes() Routes
Routes returns all of the api route for the IssueCredentialApiController
type IssueCredentialApiRouter ¶
type IssueCredentialApiRouter interface { IssueCredentialGetByThreadId(http.ResponseWriter, *http.Request) IssueCredentialIssue(http.ResponseWriter, *http.Request) IssueCredentialSendOffer(http.ResponseWriter, *http.Request) IssueCredentialSendProposal(http.ResponseWriter, *http.Request) IssueCredentialSendRequest(http.ResponseWriter, *http.Request) IssueCredentialStore(http.ResponseWriter, *http.Request) }
IssueCredentialApiRouter defines the required methods for binding the api requests to a responses for the IssueCredentialApi The IssueCredentialApiRouter implementation should parse necessary information from the http request, pass the data to a IssueCredentialApiServicer to perform the required actions, then write the service results to the http response.
type IssueCredentialApiService ¶
type IssueCredentialApiService struct {
// contains filtered or unexported fields
}
IssueCredentialApiService is a service that implents the logic for the IssueCredentialApiServicer This service should implement the business logic for every endpoint for the IssueCredentialApi API. Include any external packages or services that will be required by this service.
func (*IssueCredentialApiService) IssueCredentialGetByThreadId ¶
func (s *IssueCredentialApiService) IssueCredentialGetByThreadId(ctx context.Context, credentialExchangeThreadId string) (ImplResponse, error)
IssueCredentialGetByThreadId - Get credential exchange record by thread id
func (*IssueCredentialApiService) IssueCredentialIssue ¶
func (s *IssueCredentialApiService) IssueCredentialIssue(ctx context.Context, req IssueCredentialIssueRequest) (ImplResponse, error)
IssueCredentialIssue - Issue Credential
func (*IssueCredentialApiService) IssueCredentialSendOffer ¶
func (s *IssueCredentialApiService) IssueCredentialSendOffer(ctx context.Context, req IssueCredentialOfferRequest) (r ImplResponse, err error)
IssueCredentialSendOffer - Send credential offer
func (*IssueCredentialApiService) IssueCredentialSendProposal ¶
func (s *IssueCredentialApiService) IssueCredentialSendProposal(ctx context.Context, inlineObject6 InlineObject6) (ImplResponse, error)
IssueCredentialSendProposal - Send credential proposal
func (*IssueCredentialApiService) IssueCredentialSendRequest ¶
func (s *IssueCredentialApiService) IssueCredentialSendRequest(ctx context.Context, req SendIssueCredentialRequest) (ImplResponse, error)
IssueCredentialSendRequest - Send credential request
func (*IssueCredentialApiService) IssueCredentialStore ¶
func (s *IssueCredentialApiService) IssueCredentialStore(ctx context.Context, req IssueCredentialStoreRequest) (ImplResponse, error)
IssueCredentialStore - Store Credential
type IssueCredentialApiServicer ¶
type IssueCredentialApiServicer interface { IssueCredentialGetByThreadId(context.Context, string) (ImplResponse, error) IssueCredentialIssue(context.Context, IssueCredentialIssueRequest) (ImplResponse, error) IssueCredentialSendOffer(context.Context, IssueCredentialOfferRequest) (ImplResponse, error) IssueCredentialSendProposal(context.Context, InlineObject6) (ImplResponse, error) IssueCredentialSendRequest(context.Context, SendIssueCredentialRequest) (ImplResponse, error) IssueCredentialStore(context.Context, IssueCredentialStoreRequest) (ImplResponse, error) }
IssueCredentialApiServicer defines the api actions for the IssueCredentialApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewIssueCredentialApiService ¶
func NewIssueCredentialApiService(a *agent.Agent) IssueCredentialApiServicer
NewIssueCredentialApiService creates a default api service
type IssueCredentialIssueRequest ¶ added in v0.1.6
type IssueCredentialIssueRequest struct {
Id string `json:"id"`
}
type IssueCredentialOfferRequest ¶ added in v0.1.6
type IssueCredentialOfferRequest struct { Id string `json:"id"` Data struct { CredentialProposal CredentialPreview `json:"credential_preview,omitempty"` CredDefId string `json:"cred_def_id,omitempty"` ConnectionId string `json:"connection_id"` } `json:"data"` }
type IssueCredentialOperationResponse ¶
type IssueCredentialOperationResponse struct { State IssueCredentialState `json:"state"` ThreadId string `json:"thread_id"` CredentialId string `json:"credential_id,omitempty"` }
type IssueCredentialState ¶
type IssueCredentialState string
IssueCredentialState : All possible issue credential state values
const ( PROPOSAL_SENT IssueCredentialState = "proposal-sent" PROPOSAL_RECEIVED IssueCredentialState = "proposal-received" OFFER_SENT IssueCredentialState = "offer-sent" OFFER_RECEIVED IssueCredentialState = "offer-received" REQUEST_SENT IssueCredentialState = "request-sent" REQUEST_RECEIVED IssueCredentialState = "request-received" CREDENTIAL_ISSUED IssueCredentialState = "credential-issued" CREDENTIAL_RECEIVED IssueCredentialState = "credential-received" DONE IssueCredentialState = "done" )
List of IssueCredentialState
type IssueCredentialStoreRequest ¶
type IssueCredentialStoreRequest struct {
Id string `json:"id"`
}
type IssueCredentialV2ApiController ¶
type IssueCredentialV2ApiController struct {
// contains filtered or unexported fields
}
A IssueCredentialV2ApiController binds http requests to an api service and writes the service results to the http response
func (*IssueCredentialV2ApiController) IssueCredentialV2PrepareJsonLD ¶
func (c *IssueCredentialV2ApiController) IssueCredentialV2PrepareJsonLD(w http.ResponseWriter, r *http.Request)
IssueCredentialV2PrepareJsonLD - Prepare for issuing a JSON-LD credential (RFC0593)
func (*IssueCredentialV2ApiController) Routes ¶
func (c *IssueCredentialV2ApiController) Routes() Routes
Routes returns all of the api route for the IssueCredentialV2ApiController
type IssueCredentialV2ApiRouter ¶
type IssueCredentialV2ApiRouter interface {
IssueCredentialV2PrepareJsonLD(http.ResponseWriter, *http.Request)
}
IssueCredentialV2ApiRouter defines the required methods for binding the api requests to a responses for the IssueCredentialV2Api The IssueCredentialV2ApiRouter implementation should parse necessary information from the http request, pass the data to a IssueCredentialV2ApiServicer to perform the required actions, then write the service results to the http response.
type IssueCredentialV2ApiService ¶
type IssueCredentialV2ApiService struct { }
IssueCredentialV2ApiService is a service that implents the logic for the IssueCredentialV2ApiServicer This service should implement the business logic for every endpoint for the IssueCredentialV2Api API. Include any external packages or services that will be required by this service.
func (*IssueCredentialV2ApiService) IssueCredentialV2PrepareJsonLD ¶
func (s *IssueCredentialV2ApiService) IssueCredentialV2PrepareJsonLD(ctx context.Context, uNKNOWNBASETYPE UNKNOWN_BASE_TYPE) (ImplResponse, error)
IssueCredentialV2PrepareJsonLD - Prepare for issuing a JSON-LD credential (RFC0593)
type IssueCredentialV2ApiServicer ¶
type IssueCredentialV2ApiServicer interface {
IssueCredentialV2PrepareJsonLD(context.Context, UNKNOWN_BASE_TYPE) (ImplResponse, error)
}
IssueCredentialV2ApiServicer defines the api actions for the IssueCredentialV2Api service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewIssueCredentialV2ApiService ¶
func NewIssueCredentialV2ApiService() IssueCredentialV2ApiServicer
NewIssueCredentialV2ApiService creates a default api service
type PresentProofApiController ¶
type PresentProofApiController struct {
// contains filtered or unexported fields
}
A PresentProofApiController binds http requests to an api service and writes the service results to the http response
func (*PresentProofApiController) PresentProofGetByThreadId ¶
func (c *PresentProofApiController) PresentProofGetByThreadId(w http.ResponseWriter, r *http.Request)
PresentProofGetByThreadId - Get presentation exchange record by thread id
func (*PresentProofApiController) PresentProofSendPresentation ¶
func (c *PresentProofApiController) PresentProofSendPresentation(w http.ResponseWriter, r *http.Request)
PresentProofSendPresentation - Send presentation
func (*PresentProofApiController) PresentProofSendProposal ¶
func (c *PresentProofApiController) PresentProofSendProposal(w http.ResponseWriter, r *http.Request)
PresentProofSendProposal - Send presentation proposal
func (*PresentProofApiController) PresentProofSendRequest ¶
func (c *PresentProofApiController) PresentProofSendRequest(w http.ResponseWriter, r *http.Request)
PresentProofSendRequest - Send presentation request
func (*PresentProofApiController) PresentProofVerifyPresentation ¶
func (c *PresentProofApiController) PresentProofVerifyPresentation(w http.ResponseWriter, r *http.Request)
PresentProofVerifyPresentation - Verify presentation
func (*PresentProofApiController) Routes ¶
func (c *PresentProofApiController) Routes() Routes
Routes returns all of the api route for the PresentProofApiController
type PresentProofApiRouter ¶
type PresentProofApiRouter interface { PresentProofGetByThreadId(http.ResponseWriter, *http.Request) PresentProofSendPresentation(http.ResponseWriter, *http.Request) PresentProofSendProposal(http.ResponseWriter, *http.Request) PresentProofSendRequest(http.ResponseWriter, *http.Request) PresentProofVerifyPresentation(http.ResponseWriter, *http.Request) }
PresentProofApiRouter defines the required methods for binding the api requests to a responses for the PresentProofApi The PresentProofApiRouter implementation should parse necessary information from the http request, pass the data to a PresentProofApiServicer to perform the required actions, then write the service results to the http response.
type PresentProofApiService ¶
type PresentProofApiService struct {
// contains filtered or unexported fields
}
PresentProofApiService is a service that implents the logic for the PresentProofApiServicer This service should implement the business logic for every endpoint for the PresentProofApi API. Include any external packages or services that will be required by this service.
func (*PresentProofApiService) PresentProofGetByThreadId ¶
func (s *PresentProofApiService) PresentProofGetByThreadId(ctx context.Context, presentationExchangeThreadId string) (ImplResponse, error)
PresentProofGetByThreadId - Get presentation exchange record by thread id
func (*PresentProofApiService) PresentProofSendPresentation ¶
func (s *PresentProofApiService) PresentProofSendPresentation(ctx context.Context, inlineObject9 InlineObject9) (ImplResponse, error)
PresentProofSendPresentation - Send presentation
func (*PresentProofApiService) PresentProofSendProposal ¶
func (s *PresentProofApiService) PresentProofSendProposal(ctx context.Context, inlineObject7 InlineObject7) (ImplResponse, error)
PresentProofSendProposal - Send presentation proposal
func (*PresentProofApiService) PresentProofSendRequest ¶
func (s *PresentProofApiService) PresentProofSendRequest(ctx context.Context, inlineObject8 InlineObject8) (ImplResponse, error)
PresentProofSendRequest - Send presentation request
func (*PresentProofApiService) PresentProofVerifyPresentation ¶
func (s *PresentProofApiService) PresentProofVerifyPresentation(ctx context.Context, inlineObject10 InlineObject10) (ImplResponse, error)
PresentProofVerifyPresentation - Verify presentation
type PresentProofApiServicer ¶
type PresentProofApiServicer interface { PresentProofGetByThreadId(context.Context, string) (ImplResponse, error) PresentProofSendPresentation(context.Context, InlineObject9) (ImplResponse, error) PresentProofSendProposal(context.Context, InlineObject7) (ImplResponse, error) PresentProofSendRequest(context.Context, InlineObject8) (ImplResponse, error) PresentProofVerifyPresentation(context.Context, InlineObject10) (ImplResponse, error) }
PresentProofApiServicer defines the api actions for the PresentProofApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewPresentProofApiService ¶
func NewPresentProofApiService(a *agent.Agent) PresentProofApiServicer
NewPresentProofApiService creates a default api service
type PresentProofOperationResponse ¶
type PresentProofOperationResponse struct { State PresentProofState `json:"state"` ThreadId string `json:"thread_id"` }
type PresentProofState ¶
type PresentProofState string
PresentProofState : All possible present proof state values
const ( PROOF_PROPOSAL_SENT PresentProofState = "proposal-sent" PROOF_PROPOSAL_RECEIVED PresentProofState = "proposal-received" PROOF_REQUEST_SENT PresentProofState = "request-sent" PROOF_REQUEST_RECEIVED PresentProofState = "request-received" PROOF_PRESENTATION_SENT PresentProofState = "presentation-sent" PROOF_PRESENTATION_RECEIVED PresentProofState = "presentation-received" PROOF_REJECT_SENT PresentProofState = "reject-sent" PROOF_DONE PresentProofState = "done" )
List of PresentProofState
type PresentationPreview ¶
type PresentationPreview struct { Type string `json:"@type"` Attributes []PresentationPreviewAttributes `json:"attributes"` Predicates []PresentationPreviewPredicates `json:"predicates"` }
type PresentationRequestAttribute ¶ added in v0.1.6
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
A Route defines the parameters for an api endpoint
type Router ¶
type Router interface {
Routes() Routes
}
Router defines the required methods for retrieving api routes
func NewConnectionApiController ¶
func NewConnectionApiController(s ConnectionApiServicer) Router
NewConnectionApiController creates a default api controller
func NewCredentialApiController ¶
func NewCredentialApiController(s CredentialApiServicer) Router
NewCredentialApiController creates a default api controller
func NewCredentialDefinitionApiController ¶
func NewCredentialDefinitionApiController(s CredentialDefinitionApiServicer) Router
NewCredentialDefinitionApiController creates a default api controller
func NewDIDApiController ¶
func NewDIDApiController(s DIDApiServicer) Router
NewDIDApiController creates a default api controller
func NewIssueCredentialApiController ¶
func NewIssueCredentialApiController(s IssueCredentialApiServicer) Router
NewIssueCredentialApiController creates a default api controller
func NewIssueCredentialV2ApiController ¶
func NewIssueCredentialV2ApiController(s IssueCredentialV2ApiServicer) Router
NewIssueCredentialV2ApiController creates a default api controller
func NewPresentProofApiController ¶
func NewPresentProofApiController(s PresentProofApiServicer) Router
NewPresentProofApiController creates a default api controller
func NewSchemaApiController ¶
func NewSchemaApiController(s SchemaApiServicer) Router
NewSchemaApiController creates a default api controller
func NewStatusApiController ¶
func NewStatusApiController(s StatusApiServicer) Router
NewStatusApiController creates a default api controller
type SchemaApiController ¶
type SchemaApiController struct {
// contains filtered or unexported fields
}
A SchemaApiController binds http requests to an api service and writes the service results to the http response
func (*SchemaApiController) Routes ¶
func (c *SchemaApiController) Routes() Routes
Routes returns all of the api route for the SchemaApiController
func (*SchemaApiController) SchemaCreate ¶
func (c *SchemaApiController) SchemaCreate(w http.ResponseWriter, r *http.Request)
SchemaCreate - Create a new schema
func (*SchemaApiController) SchemaGetById ¶
func (c *SchemaApiController) SchemaGetById(w http.ResponseWriter, r *http.Request)
SchemaGetById - Get schema by id
type SchemaApiRouter ¶
type SchemaApiRouter interface { SchemaCreate(http.ResponseWriter, *http.Request) SchemaGetById(http.ResponseWriter, *http.Request) }
SchemaApiRouter defines the required methods for binding the api requests to a responses for the SchemaApi The SchemaApiRouter implementation should parse necessary information from the http request, pass the data to a SchemaApiServicer to perform the required actions, then write the service results to the http response.
type SchemaApiService ¶
type SchemaApiService struct {
// contains filtered or unexported fields
}
SchemaApiService is a service that implents the logic for the SchemaApiServicer This service should implement the business logic for every endpoint for the SchemaApi API. Include any external packages or services that will be required by this service.
func (*SchemaApiService) SchemaCreate ¶
func (s *SchemaApiService) SchemaCreate(ctx context.Context, inlineObject4 InlineObject4) (ImplResponse, error)
SchemaCreate - Create a new schema
func (*SchemaApiService) SchemaGetById ¶
func (s *SchemaApiService) SchemaGetById(ctx context.Context, schemaId string) (ImplResponse, error)
SchemaGetById - Get schema by id
type SchemaApiServicer ¶
type SchemaApiServicer interface { SchemaCreate(context.Context, InlineObject4) (ImplResponse, error) SchemaGetById(context.Context, string) (ImplResponse, error) }
SchemaApiServicer defines the api actions for the SchemaApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewSchemaApiService ¶
func NewSchemaApiService(a *agent.Agent) SchemaApiServicer
NewSchemaApiService creates a default api service
type SendIssueCredentialRequest ¶
type SendIssueCredentialRequest struct {
Id string `json:"id"`
}
type StatusApiController ¶
type StatusApiController struct {
// contains filtered or unexported fields
}
A StatusApiController binds http requests to an api service and writes the service results to the http response
func (*StatusApiController) Routes ¶
func (c *StatusApiController) Routes() Routes
Routes returns all of the api route for the StatusApiController
func (*StatusApiController) StatusGet ¶
func (c *StatusApiController) StatusGet(w http.ResponseWriter, r *http.Request)
StatusGet - Get agent/backchannel status
func (*StatusApiController) StatusGet_1 ¶
func (c *StatusApiController) StatusGet_1(w http.ResponseWriter, r *http.Request)
StatusGet_1 - Get agent/backchannel version
type StatusApiRouter ¶
type StatusApiRouter interface { StatusGet(http.ResponseWriter, *http.Request) StatusGet_0(http.ResponseWriter, *http.Request) }
StatusApiRouter defines the required methods for binding the api requests to a responses for the StatusApi The StatusApiRouter implementation should parse necessary information from the http request, pass the data to a StatusApiServicer to perform the required actions, then write the service results to the http response.
type StatusApiService ¶
type StatusApiService struct { }
StatusApiService is a service that implents the logic for the StatusApiServicer This service should implement the business logic for every endpoint for the StatusApi API. Include any external packages or services that will be required by this service.
func (*StatusApiService) StatusGet ¶
func (s *StatusApiService) StatusGet(ctx context.Context) (ImplResponse, error)
StatusGet - Get agent/backchannel status
func (*StatusApiService) StatusGet_0 ¶
func (s *StatusApiService) StatusGet_0(ctx context.Context) (ImplResponse, error)
StatusGet_0 - Get agent/backchannel version
func (*StatusApiService) StatusGet_1 ¶
func (s *StatusApiService) StatusGet_1(ctx context.Context) (ImplResponse, error)
StatusGet_1 - Get agent/backchannel version
type StatusApiServicer ¶
type StatusApiServicer interface { StatusGet(context.Context) (ImplResponse, error) StatusGet_0(context.Context) (ImplResponse, error) StatusGet_1(context.Context) (ImplResponse, error) }
StatusApiServicer defines the api actions for the StatusApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewStatusApiService ¶
func NewStatusApiService() StatusApiServicer
NewStatusApiService creates a default api service
type UNKNOWN_BASE_TYPE ¶
type UNKNOWN_BASE_TYPE struct{}
Source Files ¶
- api.go
- api_connection.go
- api_connection_service.go
- api_credential.go
- api_credential_definition.go
- api_credential_definition_service.go
- api_credential_service.go
- api_did.go
- api_did_service.go
- api_issue_credential.go
- api_issue_credential_service.go
- api_issue_credential_v2.go
- api_issue_credential_v2_service.go
- api_present_proof.go
- api_present_proof_service.go
- api_schema.go
- api_schema_service.go
- api_status.go
- api_status_service.go
- helpers.go
- impl.go
- logger.go
- model__agent_command_connection_send_ping_data.go
- model__agent_command_credential_definition_data.go
- model__agent_command_issue_credential_send_proposal_data.go
- model__agent_command_proof_send_proposal_data.go
- model__agent_command_proof_send_request_data.go
- model__agent_command_schema_data.go
- model_connection_response.go
- model_connection_state.go
- model_credential_preview.go
- model_credential_preview_attributes.go
- model_inline_object.go
- model_inline_object_1.go
- model_inline_object_10.go
- model_inline_object_2.go
- model_inline_object_3.go
- model_inline_object_4.go
- model_inline_object_5.go
- model_inline_object_6.go
- model_inline_object_7.go
- model_inline_object_8.go
- model_inline_object_9.go
- model_inline_response_200.go
- model_inline_response_200_1.go
- model_inline_response_200_2.go
- model_inline_response_200_3.go
- model_inline_response_200_4.go
- model_issue_credential_operation_response.go
- model_issue_credential_state.go
- model_present_proof_operation_response.go
- model_present_proof_state.go
- model_presentation_preview.go
- model_presentation_preview_attributes.go
- model_presentation_preview_predicates.go
- routers.go