Help us shape the future of Go! Take the 2026 Go Developer Survey

connection

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const (
	OperationID            = "/connections"
	RotateDIDPath          = OperationID + "/{id}/rotate-did"
	CreateConnectionV2Path = OperationID + "/create-v2"
	SetConnectionToV2Path  = OperationID + "/{id}/use-v2"
)

constants for connection management endpoints.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

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

Operation is the REST controller for connection management.

func New

func New(p provider) (*Operation, error)

New returns new connection management rest client protocol instance.

func (*Operation) CreateConnectionV2

func (c *Operation) CreateConnectionV2(rw http.ResponseWriter, req *http.Request)

CreateConnectionV2 swagger:route POST /connections/create-v2 connections createConnectionV2

Creates a DIDComm v2 connection record with the given DIDs.

Responses:

default: genericError
    200: createConnectionV2Response

func (*Operation) GetRESTHandlers

func (c *Operation) GetRESTHandlers() []rest.Handler

GetRESTHandlers get all controller API handlers available for this service.

func (*Operation) RotateDID

func (c *Operation) RotateDID(rw http.ResponseWriter, req *http.Request)

RotateDID swagger:route POST /connections/{id}/rotate-did connections rotateDID

Rotates the agent's DID in the given connection.

Responses:

default: genericError
    200: rotateDIDResponse

func (*Operation) SetConnectionToDIDCommV2

func (c *Operation) SetConnectionToDIDCommV2(rw http.ResponseWriter, req *http.Request)

SetConnectionToDIDCommV2 sets the didcomm version of the given connection to V2.

Jump to

Keyboard shortcuts

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