operation

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Aries          aries.Ctx
	AriesMessenger service.Messenger
	MsgRegistrar   *msghandler.Registrar
	Storage        *Storage
	PublicDID      string
}

Config holds configuration.

type CreateConnReq

type CreateConnReq struct {
	ID      string             `json:"@id"`
	Type    string             `json:"@type"`
	Purpose []string           `json:"~purpose"`
	Data    *CreateConnReqData `json:"data"`
}

CreateConnReq model.

type CreateConnReqData

type CreateConnReqData struct {
	DIDDoc json.RawMessage `json:"didDoc"`
}

CreateConnReqData model for data in CreateConnReq.

type CreateConnResp

type CreateConnResp struct {
	ID      string              `json:"@id"`
	Type    string              `json:"@type"`
	Purpose []string            `json:"~purpose"`
	Data    *CreateConnRespData `json:"data"`
}

CreateConnResp model.

type CreateConnRespData

type CreateConnRespData struct {
	ErrorMsg string          `json:"errorMsg"`
	DIDDoc   json.RawMessage `json:"didDoc"`
}

CreateConnRespData model for error data in CreateConnResp.

type DIDCommInvitationResp

type DIDCommInvitationResp struct {
	Invitation *outofband.Invitation `json:"invitation"`
}

DIDCommInvitationResp model.

type DIDCommInvitationV2Req added in v0.1.8

type DIDCommInvitationV2Req struct {
	DID string `json:"did"`
}

DIDCommInvitationV2Req model.

type DIDCommInvitationV2Resp added in v0.1.8

type DIDCommInvitationV2Resp struct {
	Invitation *outofbandv2.Invitation `json:"invitation"`
}

DIDCommInvitationV2Resp model.

type DIDCommMsg

type DIDCommMsg struct {
	ID   string `json:"@id"`
	Type string `json:"@type"`
}

DIDCommMsg model.

type Handler

type Handler interface {
	Path() string
	Method() string
	Handle() http.HandlerFunc
}

Handler http handler for each controller API endpoint.

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

Operation implements hub-router operations.

func New

func New(config *Config) (*Operation, error)

New returns a new Operation.

func (*Operation) GetRESTHandlers

func (o *Operation) GetRESTHandlers() []Handler

GetRESTHandlers get all controller API handler available for this service.

type Storage

type Storage struct {
	Persistent storage.Provider
	Transient  storage.Provider
}

Storage config.

Jump to

Keyboard shortcuts

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