resourceowner

package
v0.0.0-...-ef7a112 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationPrefix         = "/operations"
	AccessPrefix            = "/access"
	DIDsPrefix              = "/dids"
	ResolverPrefix          = "/resolver"
	CredentialsPrefix       = "/credentials"
	StatusPrefix            = "/status"
	PresentationsPrefix     = "/presentations"
	DefinitionsPrefix       = "/definitions"
	SubmissionsPrefix       = "/submissions"
	RequestsPrefix          = "/requests"
	KeyStorePrefix          = "/keys"
	VerificationPath        = "/verification"
	DIDConfigurationsPrefix = "/did-configurations"
)
View Source
const (
	HealthPrefix    = "/health"
	ReadinessPrefix = "/readiness"
	SwaggerPrefix   = "/swagger/*any"
	V1Prefix        = "/v1"
)

Variables

This section is empty.

Functions

func AccessControlAPI

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

AccessControlAPI registers all HTTP handlers for the AccessControl Service

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 Init

func Init() *gin.Engine

Init does two things: instantiate all services and register their HTTP bindings

func KeyStoreAPI

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

KeyStoreAPI registers all HTTP handlers for the Key Store 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 Run

func Run()

func SetDefaults

func SetDefaults()

Types

type Clients

type Clients struct {
	HTTPClient *http.Client
	EthClient  *ethclient.Client
	IPFSClient *shell.Shell
}

func ClientInit

func ClientInit(ctx context.Context) *Clients

type Service

type Service struct {
	KeyStore      *keystore.Service
	AccessControl *accesscontrol.Service
	RPC           *rpc.Service
	DID           *did.Service
	Schema        *schema.Service
	Credential    *credential.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 resource user which instantiates all services and their dependencies independent of transport.

func (*Service) GetServices

func (s *Service) GetServices() []frameworksvc.Service

GetServices returns all services

func (*Service) GetStorage

func (s *Service) GetStorage() storage.ServiceStorage

Jump to

Keyboard shortcuts

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