server

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package server contains the full set of handler functions and routes supported by the http api

Index

Constants

View Source
const (
	HealthPrefix           = "/health"
	ReadinessPrefix        = "/readiness"
	SwaggerPrefix          = "/swagger/*any"
	V1Prefix               = "/v1"
	OperationPrefix        = "/operations"
	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"
	WebhookPrefix          = "/webhooks"
)

Variables

This section is empty.

Functions

func CredentialAPI

func CredentialAPI(rg *gin.RouterGroup, service svcframework.Service, webhookService *webhook.Service) (err error)

CredentialAPI registers all HTTP handlers for the Credentials Service

func DecentralizedIdentityAPI

func DecentralizedIdentityAPI(rg *gin.RouterGroup, service *didsvc.Service, webhookService *webhook.Service) (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, webhookService *webhook.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, webhookService *webhook.Service) (err error)

PresentationAPI registers all HTTP handlers for the Presentation Service

func SchemaAPI

func SchemaAPI(rg *gin.RouterGroup, service svcframework.Service, webhookService *webhook.Service) (err error)

SchemaAPI registers all HTTP handlers for the Schema Service

func WebhookAPI

func WebhookAPI(rg *gin.RouterGroup, service svcframework.Service) (err error)

WebhookAPI registers all HTTP handlers for the Webhook Service

Types

type SSIServer

type SSIServer struct {
	*config.ServerConfig
	*service.SSIService
	*framework.Server
}

SSIServer exposes all dependencies needed to run a http server and all its services

func NewSSIServer

func NewSSIServer(shutdown chan os.Signal, cfg config.SSIServiceConfig) (*SSIServer, error)

NewSSIServer does two things: instantiates all service and registers their HTTP bindings

Directories

Path Synopsis
Package framework is a minimal web framework.
Package framework is a minimal web framework.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL