Documentation
¶
Index ¶
- Constants
- func CoreInit(ctx context.Context, config configpkg.OACServiceConfig, instance *Service) (*gin.Engine, error)
- func CredentialAPI(rg *gin.RouterGroup, service svcframework.Service, statusEndpoint string) (err error)
- func DecentralizedIdentityAPI(rg *gin.RouterGroup, service *didsvc.Service, did *didsvc.BatchService) (err error)
- func Init() *gin.Engine
- func IssuanceAPI(rg *gin.RouterGroup, service svcframework.Service) error
- func KeyStoreAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
- func ManifestAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
- func OperationAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
- func PresentationAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
- func Run()
- func SchemaAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
- func SetDefaults()
- type Clients
- type Service
Constants ¶
const ( OperationPrefix = "/operations" AuthPrefix = "/auth" AccessPrefix = "/access" DIDsPrefix = "/dids" ResolverPrefix = "/resolver" SchemasPrefix = "/schemas" CredentialsPrefix = "/credentials" StatusPrefix = "/status" PresentationsPrefix = "/presentations" DefinitionsPrefix = "/definitions" SubmissionsPrefix = "/submissions" IssuanceTemplatePrefix = "/issuancetemplates" RequestsPrefix = "/requests" ManifestsPrefix = "/manifests" ApplicationsPrefix = "/applications" ResponsesPrefix = "/responses" KeyStorePrefix = "/keys" VerificationPath = "/verification" DIDConfigurationsPrefix = "/did-configurations" )
const ( HealthPrefix = "/health" ReadinessPrefix = "/readiness" SwaggerPrefix = "/swagger/*any" V1Prefix = "/v1" )
Variables ¶
This section is empty.
Functions ¶
func CoreInit ¶
func CoreInit(ctx context.Context, config configpkg.OACServiceConfig, instance *Service) (*gin.Engine, error)
CoreInit initializes core server functionality. This is abstracted so the test server can also utilize it
func CredentialAPI ¶
func CredentialAPI(rg *gin.RouterGroup, service svcframework.Service, statusEndpoint string) (err error)
CredentialAPI registers all HTTP handlers for the Credentials Service
func DecentralizedIdentityAPI ¶
func DecentralizedIdentityAPI(rg *gin.RouterGroup, service *didsvc.Service, did *didsvc.BatchService) (err error)
DecentralizedIdentityAPI registers all HTTP handlers for the DID Service
func IssuanceAPI ¶
func IssuanceAPI(rg *gin.RouterGroup, service svcframework.Service) error
IssuanceAPI registers all HTTP handlers for the Issuance Service
func KeyStoreAPI ¶
func KeyStoreAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
KeyStoreAPI registers all HTTP handlers for the Key Store Service
func ManifestAPI ¶
func ManifestAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
ManifestAPI registers all HTTP handlers for the Manifest Service
func OperationAPI ¶
func OperationAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
OperationAPI registers all HTTP handlers for the Operations Service
func PresentationAPI ¶
func PresentationAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
PresentationAPI registers all HTTP handlers for the Presentation Service
func SchemaAPI ¶
func SchemaAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)
SchemaAPI registers all HTTP handlers for the Schema Service
func SetDefaults ¶
func SetDefaults()
Types ¶
type Clients ¶
func ClientInit ¶
type Service ¶
type Service struct { KeyStore *keystore.Service DID *did.Service Schema *schema.Service Issuance *issuance.Service Credential *credential.Service Manifest *manifest.Service Presentation *presentation.Service Operation *operation.Service BatchDID *did.BatchService DIDConfiguration *wellknown.DIDConfigurationService // contains filtered or unexported fields }
Service represents all services and their dependencies independent of transport
func ServicesInit ¶
func ServicesInit(ctx context.Context, clients *Clients, config configpkg.ServicesConfig) (*Service, error)
ServicesInit creates a new instance of the issuer which instantiates all services and their dependencies independent of transport.
func (*Service) GetServices ¶
GetServices returns all services
func (*Service) GetStorage ¶
func (s *Service) GetStorage() storage.ServiceStorage