server

package
v0.0.0-...-89805ac Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 12 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"
	V1Prefix               = "/v1"
	OperationPrefix        = "/operations"
	DIDsPrefix             = "/dids"
	ResolverPrefix         = "/resolver"
	SchemasPrefix          = "/schemas"
	CredentialsPrefix      = "/credentials"
	StatusPrefix           = "/status"
	PresentationsPrefix    = "/presentations"
	DefinitionsPrefix      = "/definitions"
	SubmissionsPrefix      = "/submissions"
	IssuanceTemplatePrefix = "/issuancetemplates"
	ManifestsPrefix        = "/manifests"
	ApplicationsPrefix     = "/applications"
	ResponsesPrefix        = "/responses"
	KeyStorePrefix         = "/keys"
	VerificationPath       = "/verification"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SSIServer

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

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

func NewSSIServer

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

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

func (*SSIServer) CredentialAPI

func (s *SSIServer) CredentialAPI(service svcframework.Service) (err error)

func (*SSIServer) DecentralizedIdentityAPI

func (s *SSIServer) DecentralizedIdentityAPI(service svcframework.Service) (err error)

DecentralizedIdentityAPI registers all HTTP router for the DID Service

func (*SSIServer) IssuanceAPI

func (s *SSIServer) IssuanceAPI(service svcframework.Service) error

func (*SSIServer) KeyStoreAPI

func (s *SSIServer) KeyStoreAPI(service svcframework.Service) (err error)

func (*SSIServer) ManifestAPI

func (s *SSIServer) ManifestAPI(service svcframework.Service) (err error)

func (*SSIServer) OperationAPI

func (s *SSIServer) OperationAPI(service svcframework.Service) (err error)

func (*SSIServer) PresentationAPI

func (s *SSIServer) PresentationAPI(service svcframework.Service) (err error)

func (*SSIServer) SchemaAPI

func (s *SSIServer) SchemaAPI(service svcframework.Service) (err error)

SchemaAPI registers all HTTP router for the Schema Service

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