config

package
v0.0.0-...-64dd8ac Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	UseLocalAgent        bool
	AgentURL             string
	APIToken             string
	Label                string
	AutoAccept           bool
	TransportReturnRoute string
	LoadRemoteDocuments  bool
	LogLevel             string
	Logger               api.LoggerProvider
	Storage              api.Provider
	DocumentLoader       ld.DocumentLoader
	MsgHandler           *msghandler.Registrar

	// expected to be ignored by gomobile
	// not intended to be used by golang code
	HTTPResolvers      []string
	OutboundTransport  []string
	WebsocketURL       string
	WebsocketReadLimit int64
}

Options represents configurations for Aries.

func New

func New() *Options

New returns an instance of Options which can be used to configure an aries controller instance.

func (*Options) AddHTTPResolver

func (o *Options) AddHTTPResolver(resolverURL string)

AddHTTPResolver appends an http resolver url to the options.

func (*Options) AddOutboundTransport

func (o *Options) AddOutboundTransport(transportType string)

AddOutboundTransport appends a transport type to the options e.g. http or ws.

Jump to

Keyboard shortcuts

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