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

legacyconnection

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: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OperationID                  = "/legacy/connections"
	CreateInvitationPath         = OperationID + "/create-invitation"
	CreateImplicitInvitationPath = OperationID + "/create-implicit-invitation"
	ReceiveInvitationPath        = OperationID + "/receive-invitation"
	AcceptInvitationPath         = OperationID + "/{id}/accept-invitation"
	Connections                  = OperationID
	ConnectionsByID              = OperationID + "/{id}"
	AcceptConnectionRequest      = OperationID + "/{id}/accept-request"
	CreateConnection             = OperationID + "/create"
	RemoveConnection             = OperationID + "/{id}/remove"
)

constants for endpoints of legacy-connection.

Variables

This section is empty.

Functions

This section is empty.

Types

type LegacyRemoveConnectionRequest

type LegacyRemoveConnectionRequest struct {
	// The ID of the connection record to remove
	//
	// in: path
	// required: true
	ID string `json:"id"`
}

LegacyRemoveConnectionRequest model

This is used for removing connection request

swagger:parameters legacyRemoveConnection

type LegacyRemoveConnectionResponse

type LegacyRemoveConnectionResponse struct {
	// in: body
	Body struct{}
}

LegacyRemoveConnectionResponse model

response of remove connection action

swagger:response legacyRemoveConnectionResponse

type Operation

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

Operation is controller REST service controller for legacy-connection.

func New

func New(ctx provider, notifier command.Notifier, defaultLabel string, autoAccept bool) (*Operation, error)

New returns new legacy-connection rest client protocol instance.

func (*Operation) AcceptConnectionRequest

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

AcceptConnectionRequest swagger:route POST /legacy/connections/{id}/accept-request legacy-connection legacyAcceptRequest

Accepts a stored connection request.

Responses:

default: genericError
    200: legacyAcceptConnectionResponse

func (*Operation) AcceptInvitation

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

AcceptInvitation swagger:route POST /legacy/connections/{id}/accept-invitation legacy-connection legacyAcceptInvitation

Accept a stored connection invitation....

Responses:

default: genericError
    200: legacyAcceptInvitationResponse

func (*Operation) CreateConnection

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

CreateConnection swagger:route POST /legacy/connections/create legacy-connection legacyCreateConnection

Saves the connection record.

Responses:

default: genericError
200: legacyCreateConnectionResp

func (*Operation) CreateImplicitInvitation

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

CreateImplicitInvitation swagger:route POST /legacy/connections/create-implicit-invitation legacy-connection legacyImplicitInvitation

Create implicit invitation using inviter DID.

Responses:

default: genericError
    200: legacyImplicitInvitationResponse

func (*Operation) CreateInvitation

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

CreateInvitation swagger:route POST /legacy/connections/create-invitation legacy-connection legacyCreateInvitation

Creates a new connection invitation....

Responses:

default: genericError
    200: legacyCreateInvitationResponse

func (*Operation) GetRESTHandlers

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

GetRESTHandlers get all controller API handler available for this protocol service.

func (*Operation) QueryConnectionByID

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

QueryConnectionByID swagger:route GET /legacy/connections/{id} legacy-connection legacyGetConnection

Fetch a single connection record.

Responses:

default: genericError
    200: legacyQueryConnectionResponse

func (*Operation) QueryConnections

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

QueryConnections swagger:route GET /legacy/connections legacy-connection legacyQueryConnections

query agent to agent connections.

Responses:

default: genericError
    200: legacyQueryConnectionsResponse

func (*Operation) ReceiveInvitation

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

ReceiveInvitation swagger:route POST /legacy/connections/receive-invitation legacy-connection legacyReceiveInvitation

Receive a new connection invitation....

Responses:

default: genericError
    200: legacyReceiveInvitationResponse

func (*Operation) RemoveConnection

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

RemoveConnection swagger:route POST /legacy/connections/{id}/remove legacy-connection legacyRemoveConnection

Removes given connection record.

Responses:

default: genericError
200: legacyRemoveConnectionResponse

Jump to

Keyboard shortcuts

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