framework

package
v0.0.0-...-0fc66b4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DID              Type = "did"
	Schema           Type = "schema"
	Issuance         Type = "issuance"
	Credential       Type = "credential"
	KeyStore         Type = "keystore"
	Manifest         Type = "manifest"
	Presentation     Type = "presentation"
	Operation        Type = "operation"
	Webhook          Type = "webhook"
	DIDConfiguration Type = "did_configuration"

	StatusReady    StatusState = "ready"
	StatusNotReady StatusState = "not_ready"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Type() Type
	Status() Status
}

Service is an interface each service must comply with to be registered and orchestrated by the http.

type Status

type Status struct {
	// Enum of the status.
	Status StatusState `json:"status,omitempty"`

	// When `status` is `"not_ready"`, message contains an explanation of why it's not ready.
	Message string `json:"message,omitempty"`
}

Status is for service reporting on their status

func (Status) IsReady

func (s Status) IsReady() bool

type StatusState

type StatusState string

type Type

type Type string

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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