wallet

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

Documentation

Overview

Package wallet provides handlers for wallet server operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRESTHandlers

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

GetRESTHandlers gets all REST handlers provided by wallet controller.

Types

type Opt

type Opt func(opts *allOpts)

Opt represents a controller option.

func WithDefaultLabel

func WithDefaultLabel(defaultLabel string) Opt

WithDefaultLabel is an option allowing for the defaultLabel to be set.

func WithMessageHandler

func WithMessageHandler(handler command.MessageHandler) Opt

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

func WithNotifier

func WithNotifier(notifier command.Notifier) Opt

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

func WithWalletAppURL

func WithWalletAppURL(walletApp string) Opt

WithWalletAppURL is an option for setting up wallet APP URL for wallet server.

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 operation provides wallet server REST features related to wallet operations.
Package operation provides wallet server REST features related to wallet operations.

Jump to

Keyboard shortcuts

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