Documentation ¶
Index ¶
- func GetCommandHandlers(ctx *context.Provider, opts ...Opt) ([]command.Handler, error)
- func GetRESTHandlers(ctx *context.Provider, opts ...Opt) ([]rest.Handler, error)
- type HTTPClient
- type Opt
- func WithAutoAccept(autoAccept bool) Opt
- func WithAutoExecuteRFC0593(autoExecute bool) Opt
- func WithDefaultLabel(defaultLabel string) Opt
- func WithHTTPClient(client HTTPClient) Opt
- func WithLDService(svc ldsvc.Service) Opt
- func WithMessageHandler(handler command.MessageHandler) Opt
- func WithNotifier(notifier command.Notifier) Opt
- func WithWalletConfiguration(conf *didcommwalletcmd.Config) Opt
- func WithWebhookURLs(webhookURLs ...string) Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommandHandlers ¶
GetCommandHandlers returns all command handlers provided by controller.
Types ¶
type HTTPClient ¶
HTTPClient represents an HTTP client.
type Opt ¶
type Opt func(opts *allOpts)
Opt represents a controller option.
func WithAutoAccept ¶
WithAutoAccept is an option allowing for the auto accept to be set.
func WithAutoExecuteRFC0593 ¶
WithAutoExecuteRFC0593 enables RFC0593.
func WithDefaultLabel ¶
WithDefaultLabel is an option allowing for the defaultLabel to be set.
func WithHTTPClient ¶
func WithHTTPClient(client HTTPClient) Opt
WithHTTPClient is an option for setting up a custom HTTP client.
func WithLDService ¶
WithLDService is an option for setting up a custom JSON-LD service.
func WithMessageHandler ¶
func WithMessageHandler(handler command.MessageHandler) Opt
WithMessageHandler is an option allowing for the message handler to be set.
func WithNotifier ¶
WithNotifier is an option for setting up a notifier which will notify clients of events.
func WithWalletConfiguration ¶
func WithWalletConfiguration(conf *didcommwalletcmd.Config) Opt
WithWalletConfiguration is an option for customizing vcwallet controller.
func WithWebhookURLs ¶
WithWebhookURLs is an option for setting up a webhook dispatcher which will notify clients of events.