controller

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

Documentation

Overview

Package controller provides command handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommandHandlers

func GetCommandHandlers(ctx *context.Provider, opts ...Opt) ([]command.Handler, error)

GetCommandHandlers returns all command handlers provided by controller.

func GetRESTHandlers

func GetRESTHandlers(ctx *context.Provider, opts ...Opt) ([]rest.Handler, error)

GetRESTHandlers returns all REST handlers provided by controller.

Types

type Opt

type Opt func(opts *allOpts)

Opt represents a controller option.

func WithBlocDomain

func WithBlocDomain(blocDomain string) Opt

WithBlocDomain is an option allowing for the trustbloc domain to be set.

func WithDidAnchorOrigin added in v0.1.7

func WithDidAnchorOrigin(origin string) Opt

WithDidAnchorOrigin is an option allowing for the did anchor origin.

func WithMessageHandler

func WithMessageHandler(handler ariescmd.MessageHandler) Opt

WithMessageHandler is an option allowing for the message handler to be set.

func WithNotifier

func WithNotifier(notifier ariescmd.Notifier) Opt

WithNotifier is an option for setting up a notifier which will notify clients of events.

func WithSidetreeToken added in v0.1.7

func WithSidetreeToken(token string) Opt

WithSidetreeToken is an option allowing for the sidetree token.

func WithUnanchoredDIDMaxLifeTime added in v0.1.8

func WithUnanchoredDIDMaxLifeTime(seconds int) Opt

WithUnanchoredDIDMaxLifeTime option is max time for unanchored to be trusted .

func WithWebhookURLs

func WithWebhookURLs(webhookURLs ...string) Opt

WithWebhookURLs is an option for setting up a webhook dispatcher which will notify clients of events.

Directories

Path Synopsis
Package command provides commands for rest/wasm/cli usage.
Package command provides commands for rest/wasm/cli usage.
blindedrouting
Package blindedrouting provides blinded routing features for agents.
Package blindedrouting provides blinded routing features for agents.
didclient
Package didclient provides did commands.
Package didclient provides did commands.
mediatorclient
Package mediatorclient provides client features for aries mediator commands.
Package mediatorclient provides client features for aries mediator commands.
store
Package store provides store commands.
Package store provides store commands.
internal
cmdutil
Package cmdutil provides utilities.
Package cmdutil provides utilities.
logutil
Package logutil provides helpful functions for logging.
Package logutil provides helpful functions for logging.
mocks
Package mocks provides useful mocks for testing different command controller features.
Package mocks provides useful mocks for testing different command controller features.
mocks/protocol
Package protocol provides useful mocks for testing different command controller features.
Package protocol provides useful mocks for testing different command controller features.
msghandler
Package msghandler provides messaging service related implementations.
Package msghandler provides messaging service related implementations.
testutil
Package testutil provides helpful functions for testing command controller.
Package testutil provides helpful functions for testing command controller.
Package rest provides rest operation.
Package rest provides rest operation.
blindedrouting
Package blindedrouting provides REST operations for blinded routing command.
Package blindedrouting provides REST operations for blinded routing command.
didclient
Package didclient provides REST operations.
Package didclient provides REST operations.
mediatorclient
Package mediatorclient provides REST operations for mediator client command.
Package mediatorclient provides REST operations for mediator client command.

Jump to

Keyboard shortcuts

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