cmd

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLightningNodes

func AddLightningNodes(cfg config.Config, lnm lightning.LightningManager) error

func ConfigureAuth

func ConfigureAuth(cfg config.Config, db state.DBManager) (auth.AuthService, error)

func ConfigureDIDCommHttpServer

func ConfigureDIDCommHttpServer(cfg config.Config) (*http.Server, *http.ServeMux)

func ConfigureDb

func ConfigureDb(cfg config.Config) (state.DBManager, error)

func ConfigureHTTPDIDComm

func ConfigureHTTPDIDComm(cfg config.Config, channel chan comm.IncomingDIDMessage) (comm.HttpComm, error)

func ConfigureIon

func ConfigureIon(cfg config.Config, db state.DBManager, keymanager key.KeyManager) (id.Ion, error)

func ConfigureLightningManager

func ConfigureLightningManager(cfg config.Config, channel chan comm.IncomingDIDMessage) (lightning.LightningManager, error)

func ConfigureLightningNodes

func ConfigureLightningNodes(cfg config.Config) (node.Node, error)

func ConfigureLogger

func ConfigureLogger(globalCfg config.GlobalConfig) (*zap.Logger, error)

func ConfigureServiceHandler

func ConfigureServiceHandler(cfg config.Config,
	incomingDataChan chan comm.IncomingDIDMessage,
	keyManager key.KeyManager,
	identity id.Identity,
	messageManager messages.MessageManager,
	didComm comm.DIDComm,
	db state.DBManager,
	ws service.Websocket) (service.Handler, error)

func ConfigureWebsocketDIDComm

func ConfigureWebsocketDIDComm(cfg config.Config, channel chan comm.IncomingDIDMessage) (comm.WebsocketComm, error)

func GetStringInBetweenTwoString

func GetStringInBetweenTwoString(str string, startS string, endS string) (result string)

Types

type ConfigureContext

type ConfigureContext struct {
	Core        core.Core
	Websocket   service.Websocket
	HttpDIDComm *http.Server
	Auth        auth.AuthService

	// Global things that don't need to be hot reloaded typically
	KeyManager key.KeyManager
	DB         state.DBManager
	KV         kv.KvManager
}

func ConfigureCore

func ConfigureCore(globalCfg config.GlobalConfig, prevContext *ConfigureContext) *ConfigureContext

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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