grpcinterface

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OperatorTLSKeyFile is the name of the TLS key file for the Operator
	// interface.
	OperatorTLSKeyFile = "key.pem"
	// OperatorTLSCertFile is the name of the TLS certificate file for the
	// Operator interface.
	OperatorTLSCertFile = "cert.pem"
	// Location is used as the macaroon's location hint. This is not verified as
	// part of the macaroons itself. Check the doc for more info:
	// https://github.com/go-macaroon/macaroon#func-macaroon-location.
	Location = "tdexd"
	// DbFile is the name of the macaroon database file.
	DBFile = "macaroons.db"
	// AdminMacaroonFile is the name of the admin macaroon.
	AdminMacaroonFile = "admin.macaroon"
	// ReadOnlyMacaroonFile is the name of the read-only macaroon.
	ReadOnlyMacaroonFile = "readonly.macaroon"
	// MarketMacaroonFile is the name of the macaroon allowing to open, close and
	// update the strategy of a market.
	MarketMacaroonFile = "market.macaroon"
	// PriceMacaroonFile is the name of the macaroon allowing to update only the
	// prices of markets.
	PriceMacaroonFile = "price.macaroon"
	// WalletMacaroonFile is the name of the macaroon allowing to manage the
	// so called "Wallet" subaccount of the daemon's wallet.
	WalletMacaroonFile = "wallet.macaroon"
	// WebhookMacaroonFile is the name of the macaroon allowing to add, remove or
	// list webhooks.
	WebhookMacaroonFile = "webhook.macaroon"
)

Variables

Functions

func NewService

func NewService(opts ServiceOpts) (interfaces.Service, error)

func NewServiceOnePort added in v0.8.15

func NewServiceOnePort(opts ServiceOptsOnePort) (interfaces.Service, error)

Types

type ServiceOpts

type ServiceOpts struct {
	NoMacaroons bool

	Datadir                  string
	DBLocation               string
	TLSLocation              string
	MacaroonsLocation        string
	OperatorExtraIPs         []string
	OperatorExtraDomains     []string
	WalletUnlockPasswordFile string

	OperatorAddress string
	TradeAddress    string
	TradeTLSKey     string
	TradeTLSCert    string

	WalletUnlockerSvc application.WalletUnlockerService
	WalletSvc         application.WalletService
	OperatorSvc       application.OperatorService
	TradeSvc          application.TradeService

	RepoManager   ports.RepoManager
	NoOperatorTls bool
	ConnectAddr   string
	ConnectProto  string
}

type ServiceOptsOnePort added in v0.8.15

type ServiceOptsOnePort struct {
	NoMacaroons bool

	Datadir                  string
	DBLocation               string
	MacaroonsLocation        string
	WalletUnlockPasswordFile string

	Address string

	WalletUnlockerSvc application.WalletUnlockerService
	WalletSvc         application.WalletService
	OperatorSvc       application.OperatorService
	TradeSvc          application.TradeService

	RepoManager ports.RepoManager

	TLSLocation  string
	NoTls        bool
	ExtraIPs     []string
	ExtraDomains []string
	ConnectAddr  string
	ConnectProto string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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