framework

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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DID              Type = "did"
	Auth             Type = "auth"
	Access           Type = "access"
	Authorize        Type = "authorize"
	Schema           Type = "schema"
	RPC              Type = "rpc"
	Issuance         Type = "issuance"
	Credential       Type = "credential"
	KeyStore         Type = "keystore"
	Manifest         Type = "manifest"
	Presentation     Type = "presentation"
	Operation        Type = "operation"
	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