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" )
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(opts ServiceOpts) (interfaces.Service, error)
Types ¶
type ServiceOpts ¶
type ServiceOpts struct { NoMacaroons bool Datadir string DBLocation string TLSLocation string MacaroonsLocation string WalletSvc application.WalletService OperatorSvc application.OperatorService TradeSvc application.TradeService }
Click to show internal directories.
Click to hide internal directories.